Clear data from the passthrough cache for complex or long running operations
Source:R/zz-api-cache.R
cache_clear.Rd
Clear data from the passthrough cache for complex or long running operations
Usage
cache_clear(
.cache = getOption("cache.dir", default = rappdirs::user_cache_dir("ggrrr")),
.prefix = ".*",
interactive = TRUE
)
Arguments
- .cache
the location of the cache as a directory. May get its value from options("ggrrr.cache.dir") or the default value of rappdirs::user_cache_dir("ggrrr")
- .prefix
a regular expression matching the prefix of the cached item, so that do selective clean up operations. defaults to everything.
- interactive
suppress `are you sure?` warning with a FALSE value (defaults to TRUE)
Examples
cache_clear(.prefix="example", .cache=tempdir(), interactive=FALSE)