att_from_examples()
Removed escape characters (\
) from Roxygen examples.
att_from_examples()
Fixed the selection of.R
files in the source directory. (#124)
- Add
att_from_examples()
to get all packages called in examples from R files - Add
att_from_data()
to look for functions called in data loading code att_amend_desc
amend package DESCRIPTION file (Suggests) with the list of dependencies extracted from examples in R files.set_remotes_to_desc()
takes into account the branch
- Adding an example using suggest packages to the dummypackage
att_from_rmds()
andatt_from_rscript
doesn't search in 'renv' folder anymore
create_renv_for_dev
can work even outside of an R packages
- Modification of unit tests following {roxygen2} changes.
att_amend_desc
andatt_from_namespace
return messages instead of warnings. (@MurielleDelmotte)
-
When using
att_amend_desc()
without the default parameters, likepkg_ignore = "x"
will now requireatt_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 runningatt_amend_desc()
directly in the console. Recommendation: Runatt_amend_desc(pkg_ignore = "x", update.config = TRUE)
if you have to update your config, runatt_amend_desc()
daily as you'll want to use what is stored in the config file. -
create_dependencies_file()
gets parameterinstall_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 parametersupdate.config = FALSE
,use.config = FALSE
andpath.c = "dev/config_attachment.yaml"
. (@dagousket)create_dependencies_file()
now takes other sources into account (git, gitlab, github, bioc, local). (@MurielleDelmotte)- Use
create_dependencies_file(to = NULL)
to only get the output as character and do not create a file
att_amend_desc()
does not modify useroptions("warn")
level anymore (#94)att_amend_desc()
allows "Remotes" field to contain@ref
(#67)
find_remotes()
now informs when using "r-universe" repositories.
- a new parameters
check_if_suggests_is_installed
inatt_amend_desc()
allow not to check if suggested package is installed. (thanks to @yogat3ch) create_renv_for_prod()
don't look anymore for suggested packages- Clean a maximum of temp directories after examples and unit tests
find_remotes()
andset_remotes_to_desc()
now detects github, gitlab, git, bitbucket, local installations to add to the "Remotes:" part of the DESCRIPTION file (@MurielleDelmotte)- Quarto documents can be parsed with
att_from_qmds()
as an alias ofatt_from_rmds()
.
- Documentation for bookdown and quarto dependencies extraction updated
- Allow to use dependencies after
att_amend_desc()
#52 - Fix HTML5 issues with update to {roxygen2}
- add
create_renv_for_dev()
andcreate_renv_for_prod()
function to createrenv.lock
file based on development project (@VincentGuyader and @statnmap). - Quarto documents can be parsed with
att_from_rmds()
. - Documentation for bookdown and quarto dependencies extraction updated
att_amend_desc()
now saves file before processing- Newline escape code
\n
will not interfere with package discovery
- (broken in 0.2.3) -
att_to_desc_from_is()
can now run withmust.exist = FALSE
to be used to fill DESCRIPTION file during bookdown CI process. CI YAML files must be updated with this parameter.
- Split vignette in two: package development and other dependencies management
- Allow to clean remotes list before updating with
set_remotes_to_desc(clean = TRUE)
- Allow to add Remotes field to DESCRIPTION with
set_remotes_to_desc()
- Check for packages names misspelled before filling DESCRIPTION.
- Allow vector of R files in
att_from_rscripts()
- Move default git branch from master to main
- Add NAMESPACE if missing with
att_amend_desc(document = TRUE)
- Add DESCRIPTION with empty skeleton if missing with
att_amend_desc()
- Default to remove NAMESPACE before updating to get rid of corrupted ones in
att_from_namespace()
- Fix detection of multiple render outputs in Rmd YAML with
att_from_rmd()
- Check for older pandoc version in tests
Breaking changes
att_to_description()
deprecated in favor ofatt_amend_desc()
to be first in autocompletion list, as this is the most used function of this package.att_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 r-lib/desc#80)
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
att_from_rmd
adds a temporary encoding parameter asknitr::purl
will only deal with UTF-8 in the future. Parameter not added inatt_from_rmds
.att_to_description
if {covr} is needed, should be added in parameterextra.suggests
att_to_description
has a parameter 'dir.t' to extract suggests dependencies from test directory Available by default
att_to_description
allows for 'LinkingTo' field in DESCRIPTION with a messageatt_from_rmd
now reads yaml headeratt_from_rmd
usepurl
to extract R code in an other R session usingsystem("Rscript -e ''")
att_from_rmd
: addwarn
option to allow hide messages frompurl()
att_to_description
accept parameterpath
for package not being the current projectatt_to_description
no error if NAMESPACE is emptycreate_dependencies_file
filters base packages that cannot be installed
- Prepare examples for CRAN
att_to_description
deals with Remote dependenciesatt_to_description
deals with Depends dependenciesatt_to_description
keeps versions of packages previously addedatt_to_description
removes option for automatic pkg versioncreate_dependencies_file
deals with github Remotesatt_from_rmds
now accept a vector of Rmd filenames
- Add examples in functions
att_to_description(add_version = TRUE)
adds version of package in DESCRIPTIONatt_to_description(pkg_ignore)
adds possibility to ignore some packages
- Get ready for CRAN
- Add tests.
- New function
install_from_description
to install all missing packages listed in the description file - Add an hex by @statnmap !
- Allow for absence of vignette folder in
att_to_description
- Add
create_dependencies_file
to create a file listing all packages dependencies to dinstall before your package - Allow for
pkg::fun
calls in R scripts withatt_from_functions
- Add option to run
devtools::document()
beforeatt_from_description
- Added a
NEWS.md
file to track changes to the package.