Description Usage Arguments Details
Use a cache on the local filesystem that will persist between R sessions.
1 2 | cache_filesystem2(path = tempdir(), algo = "xxhash64",
compress = TRUE)
|
path |
Directory in which to store cached items. |
algo |
The hashing algorithm used for the cache, see
|
compress |
option passed to |
This function differs from memoise::cache_filesystem
in a number of ways:
use a tempdir if none specified
absolute path Full absolute path to cache is stored, even if initialised with a relative path
compression By default objects are compressed using gzip compression.
See the compress
argument
timestamping Each get/set to the cache is timestamped so that the last access time for every cached object is known
expiry The addition of timestamps allows for expiring objects older
than a certain age. See the function memoisetools::expire_cache
faster key lookup the has_key
method now uses the timestamp cache
to determine if a given key exists or not. This makes it faster
to check if a key exists, but will cause an error if they file doesn't
actually exist on the filesystem (e.g. if you've deleted the file manually)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.