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:
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')) |
Bug tracker:https://github.com/henrikbengtsson/r.cache/issues
Last updated 2 years agofrom:912c4dd9ef (on master). Checks:OK: 3 NOTE: 4. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Aug 09 2024 |
R-4.5-win | NOTE | Aug 09 2024 |
R-4.5-linux | NOTE | Aug 09 2024 |
R-4.4-win | NOTE | Aug 09 2024 |
R-4.4-mac | NOTE | Aug 09 2024 |
R-4.3-win | OK | Aug 09 2024 |
R-4.3-mac | OK | Aug 09 2024 |
Exports:addMemoizationclearCacheevalWithMemoizationfindCachegenerateCachegetCachePathgetCacheRootPathgetChecksumloadCachememoizedCallR.cachereadCacheHeadersaveCachesetCacheRootPath
Dependencies:digestR.methodsS3R.ooR.utils
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Package R.cache | R.cache-package R.cache |
Creates a copy of an existing function such that its results are memoized | addMemoization addMemoization.default |
Evaluates an R expression with memoization | evalWithMemoization |
Gets the root path to the file cache directory | getCacheRootPath getCacheRootPath.default |
Loads data from file cache | loadCache loadCache.default |
Calls a function with memoization | memoizedCall memoizedCall.default |
Saves data to file cache | saveCache saveCache.default |
Sets the root path to the file cache directory | setCacheRootPath setCacheRootPath.default |