Learn R Programming

⚠️There's a newer version (0.16.0) of this package.Take me there.

R.cache (version 0.14.0)

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

Description

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

Copy Link

Version

Install

install.packages('R.cache')

Monthly Downloads

60,312

Version

0.14.0

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

December 6th, 2019

Functions in R.cache (0.14.0)

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