R.cache v0.13.0


Monthly downloads



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

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).

Functions in R.cache

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

Last month downloads


Date 2018-01-03
License LGPL (>= 2.1)
LazyLoad TRUE
URL https://github.com/HenrikBengtsson/R.cache
BugReports https://github.com/HenrikBengtsson/R.cache/issues
NeedsCompilation no
Packaged 2018-01-04 00:48:18 UTC; hb
Repository CRAN
Date/Publication 2018-01-04 16:55:43 UTC

Include our badge in your README