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_dirdirectory.
- Deletes the values on stored on - Sys.getenv("MAPSPAIN_CACHE_DIR")and- options(mapSpain_cache_dir).
Arguments
- config
- Logical. If - TRUE, will delete the configuration folder of mapSpain.
- cached_data
- Logical. If - TRUE, it will delete your- cache_dirand all its content.
- verbose
- Logical, displays information. Useful for debugging, default is - FALSE.
Details
This is an overkill function that is intended to reset your status as it you would never have installed and/or used mapSpain.
See also
Other cache utilities:
esp_detect_cache_dir(),
esp_set_cache_dir()
Examples
# Don't run this! It would modify your current state
# \dontrun{
esp_clear_cache(verbose = TRUE)
#> mapSpain cached data deleted: C:\Users\RUNNER~1\AppData\Local\Temp\RtmpE9Raoe/mapSpain
# }
Sys.getenv("MAPSPAIN_CACHE_DIR")
#> [1] ""
