Tools to deal with dependencies in scripts, Rmd and packages
When using att_amend_desc()
without the default parameters, like pkg_ignore = "x"
will now require att_amend_desc(pkg_ignore = "x", update.config = TRUE)
, otherwise, it will fail. This allows for the use of parameters stored in the config file when running att_amend_desc()
directly in the console.
Recommendation: Run att_amend_desc(pkg_ignore = "x", update.config = TRUE)
if you have to update your config, run att_amend_desc()
daily as you'll want to use what is stored in the config file.
create_dependencies_file()
gets parameter install_only_if_missing = FALSE
by default to complete the installation instructions packages only if missing. (@MurielleDelmotte)
att_amend_desc()
can run with the last set of parameters stored in a configuration file, without having to call them all each time. See vignettes and documentation of parameters update.config = FALSE
, use.config = FALSE
and path.c = "dev/config_attachment.yaml"
. (@dagousket)create_dependencies_file()
now takes other sources into account (git, gitlab, github, bioc, local). (@MurielleDelmotte)create_dependencies_file(to = NULL)
to only get the output as character and do not create a fileatt_amend_desc()
does not modify user options("warn")
level anymore (#94)att_amend_desc()
allows "Remotes" field to contain @ref
(#67)find_remotes()
now informs when using "r-universe" repositories.check_if_suggests_is_installed
in att_amend_desc()
allow not to check if suggested package is installed. (thanks to @yogat3ch)create_renv_for_prod()
dont look anymore for suggested packagesfind_remotes()
and set_remotes_to_desc()
now detects github, gitlab, git, bitbucket, local installations to add automatically to the "Remotes:" part of the DESCRIPTION file (@MurielleDelmotte)att_from_qmds()
as an alias of att_from_rmds()
.att_amend_desc()
#52create_renv_for_dev()
and create_renv_for_prod()
function to create renv.lock
file based on development project (@VincentGuyader and @statnmap).att_from_rmds()
.att_amend_desc()
now saves file before processing\n
will not interfere with package discoveryatt_to_desc_from_is()
can now run with must.exist = FALSE
to be used to fill
DESCRIPTION file during bookdown CI process. CI YAML files must be updated with this parameter.set_remotes_to_desc(clean = TRUE)
set_remotes_to_desc()
att_from_rscripts()
att_amend_desc(document = TRUE)
att_amend_desc()
att_from_namespace()
att_from_rmd()
Breaking changes
att_to_description()
deprecated in favor of att_amend_desc()
to be first in autocompletion list, as this is the most used function of this package.att_from_rmd()
gets parameter inline = TRUE
by default to explore calls for packages in inline R code.att_from_rmd()
and att_from_rmds()
are not anymore executed in separate R session by default. You must set inside_rmd = TRUE
to do so.Minor
find_remotes()
to help fill Remotes field in DESCRIPTIONatt_to_desc_from_is()
add parameter normalize
to avoid problem with {desc}. (See https://github.com/r-lib/desc/issues/80)First try for CRAN
att_amend_desc()
is an alias for att_to_description()
att_desc_from_is()
amends DESCRIPTION file from imports/suggests vector of packages (bookdown friendly)att_to_desc_from_pkg()
is an alias for att_to_description()
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