R.cache: Fast and Light-Weight Caching (Memoization) of Objects and Results to Speed Up Computations

Share:

Memoization can be used to speed up repetitive and computational expensive function calls. The first time a function that implements memoization is called the results are stored in a cache memory. The next time the function is called with the same set of parameters, the results are momentarily retrieved from the cache avoiding repeating the calculations. With this package, any R object can be cached in a key-value storage where the key can be an arbitrary set of R objects. The cache memory is persistent (on the file system).

Author
Henrik Bengtsson [aut, cre, cph]
Date of publication
2015-11-12 19:00:04
Maintainer
Henrik Bengtsson <henrikb@braju.com>
License
LGPL (>= 2.1)
Version
0.12.0
URLs

View on CRAN

Man pages

000.baseLoad
Loads an object from a file connection
addMemoization
Creates a copy of an existing function such that its results...
clearCache
Removes all files in a cache file directory
evalWithMemoization
Evaluates an R expression with memoization
findCache
Locates a cache file
generateCache
Generates a cache pathname from a key object
getCachePath
Gets the path to the file cache directory
getCacheRootPath
Gets the root path to the file cache directory
getChecksum
Generates a deterministic checksum for an R object
loadCache
Loads data from file cache
memoizedCall
Calls a function with memoization
Non-documented_objects
Non-documented objects
R.cache-package
Package R.cache
readCacheHeader
Loads data from file cache
saveCache
Saves data to file cache
setCachePath
Sets the path to the file cache directory
setCacheRootPath
Sets the root path to the file cache directory
setupCacheRootPath
Interactively offers the user to set up the default root path

Files in this package

R.cache
R.cache/inst
R.cache/inst/_Rcache
R.cache/inst/_Rcache/README.txt
R.cache/tests
R.cache/tests/getCacheRootPath.R
R.cache/tests/Object.getChecksum.R
R.cache/tests/StaticMethodsAndNamespaces.R
R.cache/tests/getCachePath.R
R.cache/tests/clearCache.R
R.cache/tests/evalWithMemoization.R
R.cache/tests/readCacheHeader.R
R.cache/tests/setCachePath.R
R.cache/tests/addMemoization.R
R.cache/tests/memoizedCall.R
R.cache/tests/setCacheRootPath.R
R.cache/tests/assertDigest.R
R.cache/tests/loadCache.R
R.cache/tests/textPrompt.R
R.cache/NAMESPACE
R.cache/NEWS
R.cache/R
R.cache/R/getCacheRootPath.R
R.cache/R/private.baseLoad.R
R.cache/R/Object.getChecksum.R
R.cache/R/000.R
R.cache/R/private.assertDigest.R
R.cache/R/getCachePath.R
R.cache/R/clearCache.R
R.cache/R/evalWithMemoization.R
R.cache/R/generateCache.R
R.cache/R/readCacheHeader.R
R.cache/R/findCache.R
R.cache/R/setupCacheRootPath.R
R.cache/R/setCachePath.R
R.cache/R/addMemoization.R
R.cache/R/memoizedCall.R
R.cache/R/setCacheRootPath.R
R.cache/R/addREADME.R
R.cache/R/006.fixVarArgs.R
R.cache/R/loadCache.R
R.cache/R/getChecksum.R
R.cache/R/999.NonDocumentedObjects.R
R.cache/R/999.package.R
R.cache/R/zzz.R
R.cache/R/saveCache.R
R.cache/R/textPrompt.R
R.cache/README.md
R.cache/MD5
R.cache/DESCRIPTION
R.cache/man
R.cache/man/memoizedCall.Rd
R.cache/man/saveCache.Rd
R.cache/man/generateCache.Rd
R.cache/man/000.baseLoad.Rd
R.cache/man/setupCacheRootPath.Rd
R.cache/man/addMemoization.Rd
R.cache/man/setCacheRootPath.Rd
R.cache/man/loadCache.Rd
R.cache/man/getChecksum.Rd
R.cache/man/setCachePath.Rd
R.cache/man/getCacheRootPath.Rd
R.cache/man/findCache.Rd
R.cache/man/evalWithMemoization.Rd
R.cache/man/readCacheHeader.Rd
R.cache/man/R.cache-package.Rd
R.cache/man/getCachePath.Rd
R.cache/man/clearCache.Rd
R.cache/man/Non-documented_objects.Rd