R/cache.R
Does not work with
in-memory caches such as storr_environment()
.
recover_cache(path = drake::default_cache_path(), short_hash_algo = drake::default_short_hash_algo(), long_hash_algo = drake::default_long_hash_algo(), force = FALSE, verbose = drake::default_verbose(), fetch_cache = NULL)
path | file path of the cache |
---|---|
short_hash_algo | short hash algorithm for the cache.
See |
long_hash_algo | long hash algorithm for the cache.
See |
force | logical, whether to load the cache despite any back compatibility issues with the running version of drake. |
verbose | logical or numeric, control printing to the console.
Use
|
fetch_cache | character vector containing lines of code.
The purpose of this code is to fetch the |
A drake/storr cache.
new_cache()
, this_cache()
,
get_cache()
# NOT RUN { test_with_dir("Quarantine side effects.", { clean(destroy = TRUE) load_basic_example() # Get the code with drake_example("basic"). make(my_plan) # Run the project, build all the targets. x <- recover_cache(".drake") # Recover the project's storr cache. }) # }