Skip to contents

Reports the per-user directory under tools::R_user_dir("tulpa", "cache") where tgmrf_cpp() keeps the objects it compiles. Reporting the path does not create it: the directory appears the first time a compile needs it, and tulpa_cache_clear() removes what it holds.

Usage

tulpa_cache_dir(create = FALSE)

Arguments

create

Create the directory if it is missing. FALSE (the default) only reports the path.

Value

Absolute path (character) to the cache directory.

See also

tulpa_cache_clear() to remove cached objects.

Examples

# Where compiled tgmrf_cpp() blocks are cached. Reporting creates nothing.
tulpa_cache_dir()