Skip to contents

Get the path to the 'riskintrodata' cache directory. This directory is used to store cached data from the 'riskintrodata' package.

Usage

riskintrodata_cache_dir()

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.

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 = "")