R.cache v0.14.0

0

Monthly downloads

0th

Percentile

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

Last month downloads

Details

License LGPL (>= 2.1)
LazyLoad TRUE
URL https://github.com/HenrikBengtsson/R.cache
BugReports https://github.com/HenrikBengtsson/R.cache/issues
NeedsCompilation no
Packaged 2019-12-06 04:07:01 UTC; hb
Repository CRAN
Date/Publication 2019-12-06 06:10:16 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/R.cache)](http://www.rdocumentation.org/packages/R.cache)