Learn R Programming

drake (version 4.2.0)

recover_cache: Function recover_cache

Description

Load an existing drake cache if it exists and create a new one otherwise.

Usage

recover_cache(path = NULL, type = drake::default_cache_type(),
  short_hash_algo = default_short_hash_algo(),
  long_hash_algo = default_long_hash_algo())

Arguments

path

file path of the cache

type

character scalar, type of the drake cache. Must be among the list of supported caches in cache_types().

short_hash_algo

short hash algorithm for the cache. See default_short_hash_algo() and make()

long_hash_algo

long hash algorithm for the cache. See default_long_hash_algo() and make()

See Also

new_cache, this_cache, get_cache

Examples

Run this code
# NOT RUN {
load_basic_example()
make(my_plan)
x <- recover_cache(".drake")
# }

Run the code above in your browser using DataLab