ThinkR-open / attachment

Tools to deal with dependencies in scripts, Rmd and packages
https://thinkr-open.github.io/attachment/
Other
108 stars 13 forks source link

As a dev, I need an `extra.imports` parameter for `att_amend_desc()` #74

Closed statnmap closed 1 year ago

statnmap commented 1 year ago

Context

There are some cases where the required packages are not directly listed in the "R/" directory. For instance, a Rmd file in "inst/" that is run from a function of the package. If there are specific packages in the Rmd file, there are not detected by attachment::att_amend_desc()

I think I will not recommend this practice as it may lead to more packages than needed in Imports of the DESCRIPTION file. I would prefer recommend using @importFrom package function where better suited, or opening an issue here to explain where {attachment} failed to detect a dependency.

See: https://thinkr-open.github.io/attachment/dev/articles/a-fill-pkg-description.html#a-package-was-not-detected-by-att_amend_desc

Validation

statnmap commented 1 year ago

Information added in documentation: https://thinkr-open.github.io/attachment/dev/articles/a-fill-pkg-description.html#a-package-was-not-detected-by-att_amend_desc