Skip to content

Implicit dependence on 'stats' and 'methods' #72

@grayclhn

Description

@grayclhn

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions