Package: R.cache 0.16.0

R.cache: 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).

Authors:Henrik Bengtsson [aut, cre, cph]

R.cache_0.16.0.tar.gz
R.cache_0.16.0.zip(r-4.5)R.cache_0.16.0.zip(r-4.4)R.cache_0.16.0.zip(r-4.3)
R.cache_0.16.0.tgz(r-4.4-any)R.cache_0.16.0.tgz(r-4.3-any)
R.cache_0.16.0.tar.gz(r-4.5-noble)R.cache_0.16.0.tar.gz(r-4.4-noble)
R.cache_0.16.0.tgz(r-4.4-emscripten)R.cache_0.16.0.tgz(r-4.3-emscripten)
R.cache.pdf |R.cache.html
R.cache/json (API)
NEWS

# Install 'R.cache' in R:
install.packages('R.cache', repos = c('https://henrikbengtsson.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/henrikbengtsson/r.cache/issues

On CRAN:

cachememoization

14 exports 38 stars 9.53 score 4 dependencies 104 dependents 91 scripts 62.2k downloads

Last updated 2 years agofrom:912c4dd9ef (on master). Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 08 2024
R-4.5-winNOTEOct 08 2024
R-4.5-linuxNOTEOct 08 2024
R-4.4-winNOTEOct 08 2024
R-4.4-macNOTEOct 08 2024
R-4.3-winOKOct 08 2024
R-4.3-macOKOct 08 2024

Exports:addMemoizationclearCacheevalWithMemoizationfindCachegenerateCachegetCachePathgetCacheRootPathgetChecksumloadCachememoizedCallR.cachereadCacheHeadersaveCachesetCacheRootPath

Dependencies:digestR.methodsS3R.ooR.utils

Readme and manuals

Help Manual

Help pageTopics
Package R.cacheR.cache-package R.cache
Creates a copy of an existing function such that its results are memoizedaddMemoization addMemoization.default
Evaluates an R expression with memoizationevalWithMemoization
Gets the root path to the file cache directorygetCacheRootPath getCacheRootPath.default
Loads data from file cacheloadCache loadCache.default
Calls a function with memoizationmemoizedCall memoizedCall.default
Saves data to file cachesaveCache saveCache.default
Sets the root path to the file cache directorysetCacheRootPath setCacheRootPath.default