Returns the path to the cache directory used by pr_get_tree() and
pr_date_tree() when called with cache = TRUE. Pass a path to
override the default.
Details
The default cache directory is tools::R_user_dir() with type
"cache" and the package name "prepR4pcm", which on Linux is
typically ~/.cache/R/prepR4pcm/, on macOS
~/Library/Caches/org.R-project.R/R/prepR4pcm/, and on Windows
something under %LOCALAPPDATA%\R\cache\R\prepR4pcm\.
To use a project-local cache (so it's checked in with your
analysis), set the path to a subdirectory of your project — e.g.
pr_tree_cache_dir("./.tree-cache").
See also
pr_tree_cache_status() / pr_tree_cache_clear();
pr_get_tree() for the consumer.