gisco_clear_cache {giscoR} | R Documentation |
Clear your giscoR cache dir
Description
Use this function with caution. This function would clear your cached data and configuration, specifically:
Deletes the giscoR config directory (
rappdirs::user_config_dir("giscoR", "R")
).Deletes the
cache_dir
directory.Deletes the values on stored on
Sys.getenv("GISCO_CACHE_DIR")
andoptions(gisco_cache_dir)
.
Usage
gisco_clear_cache(config = FALSE, cached_data = TRUE, verbose = FALSE)
Arguments
config |
if |
cached_data |
If this is set to |
verbose |
Logical, displays information. Useful for debugging,
default is |
Details
This is an overkill function that is intended to reset your status as it you would never have installed and/or used giscoR.
Value
Invisible. This function is called for its side effects.
See Also
Other cache utilities:
gisco_set_cache_dir()
Examples
# Don't run this! It would modify your current state
## Not run:
gisco_clear_cache(verbose = TRUE)
Sys.getenv("GISCO_CACHE_DIR")
# Set new cache on a temp dir
newcache <- file.path(tempdir(), "giscoR", "pkgdown")
newcache
gisco_set_cache_dir(newcache)
Sys.getenv("GISCO_CACHE_DIR")
## End(Not run)
[Package giscoR version 0.5.1 Index]