Skip to content

@ImportFrom once at package level #157

@robchallen

Description

@robchallen

@ImportFrom scope is at the level of the package, so you can create a package level Roxygen block with usethis::use_package_doc() and put the @ImportFrom directives in there. Then run devtools::document() and the NAMESPACE file is updated and you don;t need to declare it everywhere.

N.B. this is not what I personally do, which is to namespace all calls to all functions and import nothing, but my usecase is package development, and it is tedious to get it right.

Metadata

Metadata

Assignees

No one assigned

    Labels

    peer reviewFeedback from peer review of the repo

    Type

    No type

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions