update {renv} | R Documentation |
Update packages
Description
Update packages which are currently out-of-date. Currently supports CRAN, Bioconductor, other CRAN-like repositories, GitHub, GitLab, Git, and BitBucket.
Updates will only be checked from the same source – for example, if a package was installed from GitHub, but a newer version is available on CRAN, that updated version will not be seen.
Usage
update(
packages = NULL,
...,
exclude = NULL,
library = NULL,
rebuild = FALSE,
check = FALSE,
prompt = interactive(),
lock = FALSE,
project = NULL
)
Arguments
packages |
A character vector of R packages to update. When |
... |
Unused arguments, reserved for future expansion. If any arguments
are matched to |
exclude |
A set of packages to explicitly exclude from updating.
Use |
library |
The R library to be used. When |
rebuild |
Force packages to be rebuilt, thereby bypassing any installed versions of the package available in the cache? This can either be a boolean (indicating that all installed packages should be rebuilt), or a vector of package names indicating which packages should be rebuilt. |
check |
Boolean; check for package updates without actually installing available updates? This is useful when you'd like to determine what updates are available, without actually installing those updates. |
prompt |
Boolean; prompt the user before taking any action? For backwards
compatibility, |
lock |
Boolean; update the |
project |
The project directory. If |
Value
A named list of package records which were installed by renv.
Examples
## Not run:
# update the 'dplyr' package
renv::update("dplyr")
## End(Not run)