Use this function with caution. This function would clear your cached data and configuration, specifically:
Deletes the CatastRo config directory (
rappdirs::user_config_dir("CatastRo", "R")
).Deletes the
cache_dir
directory.Deletes the values on stored on
Sys.getenv("CATASTROESP_CACHE_DIR")
.
Arguments
- config
if
TRUE
, will delete the configuration folder of CatastRo.- cached_data
If this is set to
TRUE
, it will delete yourcache_dir
and 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 CatastRo.
See also
Other cache utilities:
catr_set_cache_dir()
Examples
# Don't run this! It would modify your current state
# \dontrun{
catr_clear_cache(verbose = TRUE)
#> CatastRo cached data deleted: C:\Users\RUNNER~1\AppData\Local\Temp\RtmpG8ffsB/CatastRo
# }
Sys.getenv("CATASTROESP_CACHE_DIR")
#> [1] ""