| cacheClearPackages | R Documentation |
Removes downloaded package archives from the cache that cachePkgDir()
returns. With usePak = TRUE (the default) this delegates to
pak::cache_clean() (no packages arg) or
pak::cache_delete(package = ...) (selective). With usePak = FALSE
it walks Require's legacy bookkeeping dir and unlinks tarballs there.
cacheClearPackages(
packages,
ask = interactive(),
Rversion = versionMajorMinor(),
clearCranCache = FALSE,
verbose = getOption("Require.verbose")
)
clearRequirePackageCache(
packages,
ask = interactive(),
Rversion = versionMajorMinor(),
clearCranCache = FALSE,
verbose = getOption("Require.verbose")
)
packages |
Either missing or a character vector of package names (currently cannot specify version number) to remove from the cache. |
ask |
Logical. If |
Rversion |
An R version (major.minor, e.g., |
clearCranCache |
Logical. If |
verbose |
Numeric or logical indicating how verbose should the function
be. If -1 or -2, then as little verbosity as possible. If 0 or FALSE,
then minimal outputs; if |
Require's own bookkeeping (SHA DB, mirrors.csv, available.packages
snapshots) is preserved by this function; use cachePurge() to clear
those as well.
clearRequirePackageCache() is a deprecated alias.
The Rversion parameter is honoured only on the legacy path – pak's
cache is not partitioned by R version the way Require's cache was, so
pak::cache_clean()/pak::cache_delete() operate on the whole cache
regardless of Rversion. The function emits a verbose note when
Rversion != versionMajorMinor() under usePak = TRUE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.