Functions to cache objects in order to speed up processes the second time.
Path to cache directory.
logical. Should directories be deleted recursively?
Arguments passed on to base::unlink
, base::unlink
x
a character vector with the names of the file(s) or directories to be deleted.
force
logical. Should permissions be changed (if possible) to allow the file or directory to be removed?
expand
logical. Should wildcards (see ‘Details’ below) and
tilde (see path.expand
) be expanded?
R object.
File name to save to.
Null.
Null.
cache_clear()
: cache_
Clear cache
Remove all data cached by the R package.
cache_files()
: cache_
List cache
List all data cached by the R package.
cache_save()
: cache_
Save cache.
if (FALSE) {
cache_clear()
}
if (FALSE) {
cache_files()
}
cache_save(mtcars, tempfile())
#> Caching file --> /tmp/RtmpSu2waH/filea03f5f3bd483