purge | R Documentation |
Purge packages from the cache. This can be useful if a package which had previously been installed in the cache has become corrupted or unusable, and needs to be reinstalled.
purge(package, ..., version = NULL, hash = NULL, prompt = interactive())
package |
A single package to be removed from the cache. |
... |
Unused arguments, reserved for future expansion. If any arguments
are matched to |
version |
The package version to be removed. When |
hash |
The specific hashes to be removed. When |
prompt |
Boolean; prompt the user before taking any action? For backwards
compatibility, |
purge()
is an inherently destructive option. It removes packages from the
cache, and so any project which had symlinked that package into its own
project library would find that package now unavailable. These projects would
hence need to reinstall any purged packages. Take heed of this in case you're
looking to purge the cache of a package which is difficult to install, or
if the original sources for that package are no longer available!
The set of packages removed from the renv global cache, as a character vector of file paths.
## Not run:
# remove all versions of 'digest' from the cache
renv::purge("digest")
# remove only a particular version of 'digest' from the cache
renv::purge("digest", version = "0.6.19")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.