Displaying 4 results from an estimated 4 matches for "hsearch_db".
2006 Jun 19
2
Function hints
...ease let me know if you know of any)
* Doesn't currently include S4 methods. Solution: add some more code
to wrap showMethods
* Personally, I think sentence case is more aesthetically pleasing
(and more flexible) than title case.
Hadley
hints <- function(x) {
db <- eval(utils:::.hsearch_db())
if (is.null(db)) {
help.search("abcd!", rebuild=TRUE, agrep=FALSE)
db <- eval(utils:::.hsearch_db())
}
base <- db$Base
alias <- db$Aliases
key <- db$Keywords
m <- all.methods(class=class(x))
m_id <- alias[match(m, alias[,1]), 2]
keywords <- lapply(m_i...
2006 Jun 19
2
Function hints
...ease let me know if you know of any)
* Doesn't currently include S4 methods. Solution: add some more code
to wrap showMethods
* Personally, I think sentence case is more aesthetically pleasing
(and more flexible) than title case.
Hadley
hints <- function(x) {
db <- eval(utils:::.hsearch_db())
if (is.null(db)) {
help.search("abcd!", rebuild=TRUE, agrep=FALSE)
db <- eval(utils:::.hsearch_db())
}
base <- db$Base
alias <- db$Aliases
key <- db$Keywords
m <- all.methods(class=class(x))
m_id <- alias[match(m, alias[,1]), 2]
keywords <- lapply(m_i...
2006 Jun 20
2
Documentation issues [Was: Function hints]
...some ambiguity here: perhaps x contains a
> string, and I
> want help on that string.)
>
> Anyway, thanks for your efforts on this so far; I hope we end up with
> something that can make it into the next release.
>
> Duncan Murdoch
>
> > db <- eval(utils:::.hsearch_db())
> > if (is.null(db)) {
> > help.search("abcd!", rebuild=TRUE, agrep=FALSE)
> > db <- eval(utils:::.hsearch_db())
> > }
> >
> > base <- db$Base
> > alias <- db$Aliases
> > key <- db$Keywords
> >
> > m &l...
2006 Jun 20
1
[R] Function hints
...some ambiguity here: perhaps x contains a
> string, and I
> want help on that string.)
>
> Anyway, thanks for your efforts on this so far; I hope we end up with
> something that can make it into the next release.
>
> Duncan Murdoch
>
> > db <- eval(utils:::.hsearch_db())
> > if (is.null(db)) {
> > help.search("abcd!", rebuild=TRUE, agrep=FALSE)
> > db <- eval(utils:::.hsearch_db())
> > }
> >
> > base <- db$Base
> > alias <- db$Aliases
> > key <- db$Keywords
> >
> > m &l...