Skip to contents

Initialize the 'riskintrodata' cache directory. This function creates the cache directory if it does not exist.

If the force argument is set to TRUE, it will remove any existing cache directory before creating a new one.

Usage

init_riskintrodata_cache(force = FALSE)

Arguments

force

Logical. If TRUE, remove existing cache directory.

Value

The path to the 'riskintrodata' cache directory.

Examples

riskintrodata_dummy_setup()
#> Warning: '/tmp/RtmpZD76sq/RISKINTRODATA_CACHE_DIR' already exists
#> Warning: cannot open file '/home/runner/Documents/skintrodata_dummy_setup.txt': No such file or directory
#> Error in file(con, "w"): cannot open the connection
init_riskintrodata_cache()
#> [1] "/tmp/RtmpZD76sq/RISKINTRODATA_CACHE_DIR"
if (FALSE) { # \dontrun{
init_riskintrodata_cache(force = TRUE)
} # }