Create a new cache
Low level tools to work with Cache
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)
)
A path describing the directory in which to create the database file(s)
A driver, passed to dbConnect
A '>DBIConnection object, as returned by
dbConnect()
.
Logical. Should it create a cache in the cachePath
,
even if it already exists, overwriting.
# replaces archivist::createLocalRepo
The R object to save to the cache
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
The hash string representing the result of .robustDigest