Clear Require Cache elements
Usage
cacheClearPackages(
packages,
ask = interactive(),
Rversion = versionMajorMinor(),
clearCranCache = FALSE,
verbose = getOption("Require.verbose")
)
clearRequirePackageCache(
packages,
ask = interactive(),
Rversion = versionMajorMinor(),
clearCranCache = FALSE,
verbose = getOption("Require.verbose")
)
Arguments
- packages
Either missing or a character vector of package names (currently cannot specify version number) to remove from the local Require Cache.
- ask
Logical. If
TRUE
, then it will ask user to confirm- Rversion
An R version (major dot minor, e.g., "4.2"). Defaults to current R version.
- clearCranCache
Logical. If
TRUE
, then this will also clear the localcrancache
cache, which is only relevant ifoptions(Require.useCranCache = TRUE)
, i.e., ifRequire
is using thecrancache
cache also- 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
1
or TRUE, more outputs;2
even more. NOTE: inRequire
function, whenverbose >= 2
, also returns details as ifreturnDetails = TRUE
(for backwards compatibility).