A few helpers to get specific things from the cache repository
getUserTags(cacheRepo, shownCache, cacheId, concatenated = TRUE)getCacheId(cacheRepo, shownCache, artifact)
getArtifact(cacheRepo, shownCache, cacheId)
A repository used for storing cached objects.
This is optional if Cache
is used inside a SpaDES module.
Primary way of supplying cacheRepo
; the data.table obj
resulting from showCache
, i.e., it will override cacheRepo
.
If this and cacheRepo
are missing, then it will default to
getOption('reproducible.cachePath')
A character vector of cacheId values to use in the cache
Logical. If TRUE
, the returned userTags
will
be concatenated tagKey:tagValue
.
Character vector of artifact values in the
artifact
column of showCache
getCacheId
returns the cacheId
values for 1 or more artifacts in the cache.
getArtifact
returns the artifact
value for 1 or more
entries in the cache, by cacheId
.