roxygen2 - Trouble creating an R package with _roxygen2_ -
i having problem creating r bundle roxygen2 . here code:
require(devtools) require(roxygen2) setwd("c://users//pfeiffer.s@pg.com//documents//sp th//r stuff") create("myfunctions") at point, used windows file explorer add together .r files folder "r" within folder "myfunctions".
setwd("c:/users/pfeiffer.s@pg.com/documents/sp th/r stuff//myfunctions") document() setwd("c:/users/pfeiffer.s@pg.com/documents/sp th/r stuff") install("myfunctions") everything appeared work properly, but:
?vectorize #one of .r files added no documentation ‘vectorize’ in specified packages , libraries: seek ‘??vectorize’
your problem didn't load bundle after installed it.
instead of
install("myfunctions") try running
install("myfunctions") library("myfunctions") r roxygen2
No comments:
Post a Comment