phist_cache.Rd
Function to access (and manage) the plothistory package
cache. phist_chache()
returns the central plothistory
cache
directory.
When plots are cached, they are named after their md5sum.
The function will also display a message with the number of files and total size used when the latter reaches 10 Mb.
phist_cache(ask = TRUE)
logical(1)
that defines whether to ask to create the
cache directory it doesn't exist yet. Default is TRUE
.
The path to the cache directory or NA
, when it's not
set.
plothistory:::phist_cache()
#> [1] NA
## to set it in a non-interactive session
plothistory:::phist_cache(ask = FALSE)
#> [1] "/home/runner/.cache/R/plothistory"