Deletes cached release files, for all data versions or only for the ones given. The files are downloaded again when they are next needed.
Usage
pks_cache_clear(version = NULL, ask = interactive())Value
The removed files as a tibble like pks_cache_info(), invisibly.
Deutsch
Löscht Dateien aus dem Cache, für alle oder für die angegebenen Datenversionen. In interaktiven Sitzungen wird vorher nachgefragt.
See also
Other cache:
pks_cache_info()
Examples
# A temporary cache, so the example leaves your own cache alone
old <- Sys.getenv("R_USER_CACHE_DIR", NA)
Sys.setenv(R_USER_CACHE_DIR = tempfile())
pks_cache_clear(ask = FALSE)
#> Nothing to remove from the cache.
if (is.na(old)) Sys.unsetenv("R_USER_CACHE_DIR") else Sys.setenv(R_USER_CACHE_DIR = old)