With actively developed projects, it can be beneficial to auto-update
packages used in the project with a failsafe to roll back versions in case
there are breaking changes that need to be fixed. This is noramlly
accomplished via the function renv::update(), but that assumes that no new
packages have been introduced into your workflow. This function searches for
new packages, and updates existing packages.
Usage
ci_update(
profile = "lesson-requirements",
update = "true",
force_renv_init = "false",
repos = NULL
)Arguments
- profile
the profile of the renv project
- update
a character vector of
'true'(default) or'false', which indicates whether or not the existing packages should be updated.- force_renv_init
a character vector of
'true'or'false'(default), to force the re-initialization of renv even if a lockfile exists. This can be useful if you want to ensure that Bioconductor packages are properly initialized. This can also be useful to update broken or very old packages, or when R updates and existing package versions cannot be restored.- repos
the repositories to use in the search.