% Generated by roxygen2: do not edit by hand % Please edit documentation in R/update.R \name{update} \alias{update} \title{Update packages} \usage{ update( packages = NULL, ..., exclude = NULL, library = NULL, type = NULL, rebuild = FALSE, check = FALSE, prompt = interactive(), lock = FALSE, all = FALSE, project = NULL ) } \arguments{ \item{packages}{A character vector of \R packages to update. When \code{NULL} (the default), all packages (apart from any listed in the \code{ignored.packages} project setting) will be updated.} \item{...}{Unused arguments, reserved for future expansion. If any arguments are matched to \code{...}, renv will signal an error.} \item{exclude}{A set of packages to explicitly exclude from updating. Use \verb{renv::update(exclude = <...>)} to update all packages except for a specific set of excluded packages.} \item{library}{The \R library to be used. When \code{NULL}, the active project library will be used instead.} \item{type}{The type of package to install ("source" or "binary"). Defaults to the value of \code{getOption("pkgType")}.} \item{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.} \item{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.} \item{prompt}{Boolean; prompt the user before taking any action? For backwards compatibility, \code{confirm} is accepted as an alias for \code{prompt}.} \item{lock}{Boolean; update the \code{renv.lock} lockfile after the successful installation of the requested packages?} \item{all}{Boolean; should \code{renv} check all library paths for out-of-date packages? When \code{FALSE} (the default), only the project library will be checked for out-of-date packages.} \item{project}{The project directory. If \code{NULL}, then the active project will be used. If no project is currently active, then the current working directory is used instead.} } \value{ A named list of package records which were installed by renv. } \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. } \examples{ \dontrun{ # update the 'dplyr' package renv::update("dplyr") } }