Remove all or some of the data downloaded via fetch_bbs_data()
as well as
model executables created by cmdstanr::cmdstan_model()
via run_model()
.
Arguments
- type
Character. Which cached data to remove. One of "all", "bbs_data", or "models". If "all", removes entire cache directory (and all data contained therein). If "bbs_data", removes only BBS data downloaded with
fetch_bbs_data()
. If "models", removes only model executables compiled whenrun_models()
is run.- level
Character. BBS data to remove, one of "all", "state", or "stop". Only applies if
type = "bbs_data"
.- release
Character/Numeric. BBS data to remove, one of "all", 2020, or 2022. Only applies if
type = "bbs_data"
.
Examples
if (FALSE) {
# Remove everything
remove_cache(type = "all")
# Remove all BBS data files (but not the dir)
remove_cache(level = "all", release = "all")
# Remove all 'stop' data
remove_cache(level = "stop", release = "all")
# Remove all 2020 data
remove_cache(level = "all", release = 2020)
# Remove 2020 stop data
remove_cache(level = "stop", release = 2020)
# Remove all model executables
remove_cache(type = "model")
}