Learn R Programming

reproducible (version 1.0.0)

createCache: Create a new cache

Description

Create a new cache

Low level tools to work with Cache

Usage

createCache(
  cachePath,
  drv = getOption("reproducible.drv", RSQLite::SQLite()),
  conn = getOption("reproducible.conn", NULL),
  force = FALSE
)

saveToCache( cachePath, drv = getOption("reproducible.drv", RSQLite::SQLite()), conn = getOption("reproducible.conn", NULL), obj, userTags, cacheId )

loadFromCache(cachePath, cacheId)

rmFromCache( cachePath, cacheId, drv = getOption("reproducible.drv", RSQLite::SQLite()), conn = getOption("reproducible.conn", NULL) )

Arguments

cachePath

A path describing the directory in which to create the database file(s)

drv

A driver, passed to dbConnect

conn

A '>DBIConnection object, as returned by dbConnect().

force

Logical. Should it create a cache in the cachePath, even if it already exists, overwriting. # replaces archivist::createLocalRepo

obj

The R object to save to the cache

userTags

A character vector with descriptions of the Cache function call. These will be added to the Cache so that this entry in the Cache can be found using userTags e.g., via showCache

cacheId

The hash string representing the result of .robustDigest