powered by
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")).
rappdirs::user_config_dir("mapSpain", "R")
Deletes the cache_dir directory.
cache_dir
Deletes the values on stored on Sys.getenv("MAPSPAIN_CACHE_DIR") and options(mapSpain_cache_dir).
Sys.getenv("MAPSPAIN_CACHE_DIR")
options(mapSpain_cache_dir)
esp_clear_cache(config = FALSE, cached_data = TRUE, verbose = FALSE)
if TRUE, will delete the configuration folder of mapSpain.
TRUE
If this is set to TRUE, it will delete your cache_dir and all its content.
Logical, displays information. Useful for debugging, default is FALSE.
FALSE
Invisible. This function is called for its side effects.
This is an overkill function that is intended to reset your status as it you would never have installed and/or used mapSpain.
Other cache utilities: esp_set_cache_dir()
esp_set_cache_dir()
# NOT RUN { # Don't run this! It would modify your current state # } # NOT RUN { esp_clear_cache(verbose = TRUE) # } # NOT RUN { Sys.getenv("MAPSPAIN_CACHE_DIR") # }
Run the code above in your browser using DataLab