Skip to contents

Local cache directory for the Victorian workbooks

Usage

morie_datasets_vic_cache_dir(cache_dir = NULL)

Arguments

cache_dir

Optional directory. Defaults to the MORIE_VIC_CACHE environment variable, then to a vic folder under tools::R_user_dir("rmorie", "cache").

Value

The cache directory path, created if absent.

Examples

d <- morie_datasets_vic_cache_dir(tempfile())
dir.exists(d)
#> [1] TRUE