Learn R Programming

R.cache (version 0.16.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

61,020

Version

0.16.0

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

July 21st, 2022

Functions in R.cache (0.16.0)

getCachePath

Gets the path to the file cache directory
.baseLoad

Loads an object from a file connection
R.cache-package

Package R.cache
Non-documented objects

Non-documented objects
generateCache

Generates a cache pathname from a key object
evalWithMemoization

Evaluates an R expression with memoization
addMemoization

Creates a copy of an existing function such that its results are memoized
clearCache

Removes all files in a cache file directory
Options used by R.cache

Options used by R.cache
setCacheRootPath

Sets the root path to the file cache directory
setCachePath

Sets the path to the file cache directory
setupCacheRootPath

Interactively offers the user to set up the default root path
findCache

Locates a cache file
loadCache

Loads data from file cache
readCacheHeader

Loads data from file cache
getChecksum

Generates a deterministic checksum for an R object
getCacheRootPath

Gets the root path to the file cache directory
memoizedCall

Calls a function with memoization
saveCache

Saves data to file cache