R/cache.R
Currently only works with
storr::storr_rds()
file system caches.
cache_path(cache = NULL)
cache | the cache whose file path you want to know |
---|
File path where the cache is stored.
# 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) }) # }