memoise (version 1.1.0)

cache_filesystem: Filesystem Cache

Description

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

Usage

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

Run this code
# NOT RUN {
# }
# 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)

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab