| cache_clear | R Documentation |
Removes cached R installations and/or npm packages from the cache directory.
cache_clear(what = c("all", "r", "npm", "nodejs", "python"))
what |
Character string specifying what to clear. One of
|
Invisibly returns NULL.
Use this function to free disk space or force re-downloading of assets:
"r": Removes only cached R installations
"npm": Removes only cached npm packages
"nodejs": Removes only cached Node.js installations
"python": Removes only cached Python installations
"all": Removes all cached assets
If the cache directory doesn't exist, a message is shown and nothing is done.
# Clear everything in the cache
cache_clear()
# Clear only R installations
cache_clear("r")
# Clear only npm packages
cache_clear("npm")
# Clear only Node.js installations
cache_clear("nodejs")
# Clear only Python installations
cache_clear("python")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.