update_cache: Update the cache after a download/install/update

View source: R/update-cache.R

update_cacheR Documentation

Update the cache after a download/install/update

Description

Update the cache after a download/install/update

Usage

update_cache(destdir, binaries = FALSE, warnings = list(), lib,
  timestamp, args)

Arguments

destdir

Directory of the downloaded packages. See utils::install.packages().

binaries

Whether to try to add binary packages to the cache.

warnings

List of warnings we got from utils::install.packages().

lib

The lib argument to install_packages. Where the packages are installed. If missing or NULL, then first element of base::.libPaths() is used.

timestamp

A timestamp, when the installation started. We use this to decide if a package was installed in the current process.

args

additional arguments to install_packages (or the other functions), they have to be matched.


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