caching | R Documentation |
Several utility functions for caching workflow data. The most important function is clearCache
; other
functions are primarily for internal use.
makeHash(..., checkDT = TRUE)
makeFileHash(..., length = Inf)
loadCacheData(category, hashes, dbArg = NULL, simplify = TRUE, fixDTs = TRUE)
saveCacheData(category, data, hash, dbArg = NULL)
clearCache(what = NULL, file = NULL, vacuum = TRUE)
... |
Arguments/objects to be used for hashing. |
checkDT |
|
length |
Maximum file length to hash. Passed to |
category |
The category of the object to be cached. |
hashes |
A |
dbArg |
Alternative connection to database. Default is |
simplify |
If |
fixDTs |
Should be |
data |
The object to be cached. |
hash |
The hash string of the object to be cached (e.g. obtained with |
what |
This argument describes what should be done. When |
file |
The cache file. If |
vacuum |
If |
makeHash
Make a hash string of given arguments.
makeFileHash
Generates a hash from the contents of one or more files.
loadCacheData
Loads cached data from a database.
saveCacheData
caches data in a database.
clearCache
will either remove one or more tables within the cache sqlite
database or simply
wipe the whole cache file. Removing tables will VACUUM
the database (unless vacuum=FALSE
), which may
take some time for large cache files.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.