Skip to contents

Returns the directory used to store cached model artifacts. By default this is a platform-appropriate user cache path from tools::R_user_dir("writeAlizer","cache"). If the option writeAlizer.cache_dir is set to a non-empty string, that location is used instead. This makes it easy to redirect the cache during tests or examples (e.g., to tempdir()).

Usage

wa_cache_dir()

Value

Character scalar path.

See also

Examples

# Inspect the cache directory (no side effects)
wa_cache_dir()
#> [1] "/home/runner/.cache/R/writeAlizer"

#> Cleared cache: /tmp/RtmpcYVUjO/wa_cache_demo