cache_filesystem: Filesystem Cache

Description Usage Arguments Examples

View source: R/cache_filesystem.R

Description

Use a cache on the local filesystem that will persist between R sessions.

Usage

1
cache_filesystem(path, algo = "xxhash64")

Arguments

path

Directory in which to store cached items.

algo

The hashing algorithm used for the cache, see digest for available algorithms.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
# Use with Dropbox

db <- cache_filesystem("~/Dropbox/.rcache")

mem_runif <- memoise(runif, cache = db)

# Use with Google Drive

gd <- cache_filesystem("~/Google Drive/.rcache")

mem_runif <- memoise(runif, cache = gd)


## End(Not run)

hadley/memoise documentation built on March 26, 2018, 10:56 a.m.