Get 'riskintrodata' Cache Directory
riskintrodata_cache_dir.Rd
Get the path to the 'riskintrodata' cache directory. This directory is used to store cached data from the 'riskintrodata' package.
Details
This directory is managed by R function R_user_dir()
but can also
be defined in a non-user location by setting ENV variable RISKINTRODATA_CACHE_DIR
or by setting R option RISKINTRODATA_CACHE_DIR
.
See also
Other riskintrodata cache management:
init_riskintrodata_cache()
,
riskintrodata_cache_exists()
,
riskintrodata_dummy_setup()
,
rm_riskintrodata_cache()
Examples
riskintrodata_cache_dir()
#> [1] "/tmp/RtmpZD76sq/RISKINTRODATA_CACHE_DIR"
options(RISKINTRODATA_CACHE_DIR = tempdir())
riskintrodata_cache_dir()
#> [1] "/tmp/RtmpZD76sq"
options(RISKINTRODATA_CACHE_DIR = NULL)
Sys.setenv(RISKINTRODATA_CACHE_DIR = tempdir())
riskintrodata_cache_dir()
#> [1] "/tmp/RtmpZD76sq"
Sys.setenv(RISKINTRODATA_CACHE_DIR = "")