klutometis/roxygen — Issue #72: Implicit dependence on 'stats' and 'methods'
Author: gcalhoun
Created: 2012-01-10 17:31:00+00:00
State: open

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).