-
Notifications
You must be signed in to change notification settings - Fork 236
Closed
Description
roxygenize uses the 'setNames' function from stats and 'setPackageName' from methods, but stats and methods are not listed in the package dependencies. They are both loaded anyway when using R interactively, but not when Rscript is used, i.e.:
$ Rscript --default-packages=roxygen2 -e 'roxygenize("simplebreak.source", "simplebreak")'
gives the error:
Error in read.description(DESCRIPTION) :
could not find function "setNames"
Calls: roxygenize -> read.description
Execution halted
but
$ Rscript --default-packages=roxygen2,stats,methods -e 'roxygenize("simplebreak.source", "simplebreak")'
works fine. This is in R version 2.14.1 beta (r57866).
Metadata
Metadata
Assignees
Labels
No labels