Learn R Programming

drake (version 4.2.0)

new_cache: Function new_cache

Description

Make a new drake cache.

Usage

new_cache(path = drake::default_cache_path(),
  type = drake::default_cache_type(),
  short_hash_algo = drake::default_short_hash_algo(),
  long_hash_algo = drake::default_long_hash_algo())

Arguments

path

file path to 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

default_short_hash_algo, default_long_hash_algo, make, cache_types

Examples

Run this code
# NOT RUN {
cache1 <- new_cache() # Creates a new hidden '.drake' folder.
cache2 <- new_cache(path = "not_hidden", short_hash_algo = "md5")
# }

Run the code above in your browser using DataLab