tulpa_cache_dir: Default cache directory for 'tgmrf_cpp()'-compiled DLLs

View source: R/tgmrf_cpp.R

tulpa_cache_dirR Documentation

Default cache directory for tgmrf_cpp()-compiled DLLs

Description

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()


tulpa documentation built on Oct. 19, 2026, 5:09 p.m.