esp_clear_cache {mapSpain} | R Documentation |
Clear your mapSpain cache dir
Description
Use this function with caution. This function would clear your cached data and configuration, specifically:
Deletes the mapSpain config directory (
rappdirs::user_config_dir("mapSpain", "R")
).Deletes the
cache_dir
directory.Deletes the values on stored on
Sys.getenv("MAPSPAIN_CACHE_DIR")
andoptions(mapSpain_cache_dir)
.
Usage
esp_clear_cache(config = FALSE, cached_data = TRUE, verbose = FALSE)
Arguments
config |
Logical. If |
cached_data |
Logical. If |
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 mapSpain.
Value
Invisible. This function is called for its side effects.
See Also
Other cache utilities:
esp_detect_cache_dir()
,
esp_set_cache_dir()
Examples
# Don't run this! It would modify your current state
## Not run:
esp_clear_cache(verbose = TRUE)
## End(Not run)
Sys.getenv("MAPSPAIN_CACHE_DIR")