This can be used by a user to pre-test their arguments before running
Cache
, for example to determine whether there is a cached copy.
CacheDigest(objsToDigest, algo = "xxhash64", calledFrom = "Cache", ...)
objsToDigest | A list of all the objects (e.g., arguments) to be digested |
---|---|
algo | The algorithms to be used; currently available choices are
|
calledFrom | a Character string, length 1, with the function to compare with. Default is "Cache". All other values may not produce robust CacheDigest results. |
... | passed to |
A list of length 2 with the outputHash
, which is the digest
that Cache uses for cacheId
and also preDigest
, which is
the digest of each sub-element in objsToDigest
.