| cachePurge | R Documentation |
Clears Require's own bookkeeping caches: the available.packages()
snapshot, the GitHub SHA database, the DESCRIPTION cache, and the
pkgDep memoisation database. These live under cacheDir() and are
distinct from the package binary tarball cache.
cachePurge(packages = FALSE, repos = getOption("repos"))
purgeCache(packages = FALSE, repos = getOption("repos"))
packages |
Either a character vector of packages to install via
|
repos |
The remote repository (e.g., a CRAN mirror), passed to either
|
With packages = TRUE, the package binary cache is also cleared by
calling cacheClearPackages() – which under usePak = TRUE (the
default) delegates to pak::cache_clean(), and under the legacy path
walks Require's bookkeeping dir directly.
purgeCache() is a deprecated alias.
Run for its side effect, namely, all cached objects are removed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.