| gisco_clear_cache | R Documentation |
Use this function with caution. It clears your cached data and configuration, specifically:
Deletes the giscoR config directory
(tools::R_user_dir("giscoR", "config")).
Deletes the cache_dir directory.
Deletes the value stored in Sys.getenv("GISCO_CACHE_DIR").
gisco_clear_cache(config = FALSE, cached_data = TRUE, verbose = FALSE)
config |
If |
cached_data |
If |
verbose |
A logical value. If |
Fully resets your cache state as if you had never installed or used giscoR.
Invisible. Called for its side effects.
tools::R_user_dir()
Other cache utilities:
gisco_set_cache_dir()
# Do not run this. It modifies your current state.
## Not run:
my_cache <- gisco_detect_cache_dir()
# Set an example cache.
ex <- file.path(tempdir(), "example", "cache")
gisco_set_cache_dir(ex, verbose = FALSE)
# Restore the initial cache.
gisco_clear_cache(verbose = TRUE)
gisco_set_cache_dir(my_cache)
identical(my_cache, gisco_detect_cache_dir())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.