update_packages: Update Outdated Packages, with Caching

View source: R/update-packages.R

update_packagesR Documentation

Update Outdated Packages, with Caching

Description

Update Outdated Packages, with Caching

Usage

update_packages(lib.loc = NULL, repos = getOption("repos"),
  contriburl = contrib.url(repos, type), method, instlib = NULL,
  ask = TRUE, available = NULL, oldPkgs = NULL, ...,
  checkBuilt = FALSE, type = getOption("pkgType"))

Arguments

lib.loc

character vector describing the location of R library trees to search through (and update packages therein), or NULL for all known trees (see .libPaths).

repos

character vector, the base URL(s) of the repositories to use, e.g., the URL of a CRAN mirror such as "https://cloud.r-project.org".

contriburl

URL(s) of the contrib sections of the repositories. Use this argument if your repository is incomplete. Overrides argument repos. Incompatible with type = "both".

method

Download method, see download.file. Unused if a non-NULL available is supplied.

instlib

character string giving the library directory where to install the packages.

ask

logical indicating whether to ask the user to select packages before they are downloaded and installed, or the character string "graphics", which brings up a widget to allow the user to (de-)select from the list of packages which could be updated. (The latter value only works on systems with a GUI version of select.list, and is otherwise equivalent to ask = TRUE.)

available

an object as returned by available.packages listing packages available at the repositories, or NULL which makes an internal call to available.packages. Incompatible with type = "both".

oldPkgs

if specified as non-NULL, update_packages() only considers these packages for updating. This may be a character vector of package names or a matrix as returned by old.packages.

...

additional arguments are passed to utils::update.packages().

checkBuilt

If TRUE, a package built under an earlier major.minor version of R (e.g., 3.4) is considered to be ‘old’.

type

character, indicating the type of package to download and install. See install.packages.

See Also

Other caching package management functions: available_packages, download_packages, install_packages


r-lib/crancache documentation built on July 27, 2023, 4:55 p.m.