New version of {attachment} has been published on CRAN ! We continue to improve its functionalities to help you deal with dependencies in R, in particular during package development.
Since our last blog post presenting the aim of {attachment}, two versions reached CRAN. The full documentation is available on the {pkgdown} website : https://thinkr-open.github.io/attachment.
Still, for package developers, att_amend_desc()
keeps being your best friend after each change in your package. Just before devtools::check()
as we explain in our guide for package development along with documentation.
Install {attachment} from CRAN or GitHub
CRAN version
install.packages("attachment")
Development version
# install.packages("devtools") devtools::install_github("ThinkR-open/attachment")
{attachment} 0.2.0: Find dependencies in Rmarkdown inline code
Breaking changes
att_to_description()
deprecated in favor ofatt_amend_desc()
to be first in auto-completion list, as this is the most used function of this packageatt_from_rmd()
gets parameterinline = TRUE
by default to explore calls for packages in inline R code.att_from_rmd()
andatt_from_rmds()
are not anymore executed in separate R session by default. You must setinside_rmd = TRUE
to do so.
Minor
- Add
find_remotes()
to help fill Remotes field in DESCRIPTION att_to_desc_from_is()
add parameternormalize
to avoid problem with {desc}. (See https://github.com/r-lib/desc/issues/80)
{attachment} 0.1.0: Allow {bookdown} gitbook DESCRIPTION
Find out how to fill DESCRIPTION for your {bookdown} in the documentation: https://thinkr-open.github.io/attachment/articles/b-bookdown-and-scripts.html
att_amend_desc()
is an alias foratt_to_description()
att_desc_from_is()
amends DESCRIPTION file from imports/suggests vector of packagesatt_to_desc_from_pkg()
is an alias foratt_to_description()
- Removed dependency to {devtools}, replace by {roxygen}
att_to_description()
shows packages added/removed from DESCRIPTIONatt_to_description()
deals with dependencies in tests/ directoryatt_from_rmds()
allows user defined regex to detect Rmd files