drake (version 6.2.1)

cache_path: Return the file path where the cache is stored, if applicable.

Description

Currently only works with storr::storr_rds() file system caches.

Usage

cache_path(cache = NULL)

Arguments

cache

the cache whose file path you want to know

Value

File path where the cache is stored.

Examples

Run this code
# NOT RUN {
test_with_dir("Quarantine side effects.", {
clean(destroy = TRUE)
# Get/create a new drake/storr cache.
cache <- recover_cache()
# Show the file path of the cache.
cache_path(cache = cache)
# In-memory caches do not have file paths.
mem <- storr_environment()
cache_path(cache = mem)
})
# }

Run the code above in your browser using DataLab