Return package local cache path
Caching.Rd
Return package local cache path
Clear the package's local cache path
Attempts to delete all folder/files in cache_path()
.
Usage
cache_path()
cache_clear(what = c("gcms", "gcmts", "gcmhist", "reference", "obs", "obs_ts"))
Arguments
- what
character. Which data folders should be cleared? Accepts "reference", "gcms" or both.
Value
character. The full path of the package local cache.
TRUE or FALSE depending on whether cache was cleared successfully or not.
Details
By default, it uses tools::R_user_dir()
. The cache location can be
set using the climr.cache.path
option with options("climr.cache.path" = "your_path")
.
It may fail if R has no permission to delete files/folders
in the cache_path()
directory