The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Title: Simple R Cache
Description: Simple result caching in R based on R.cache. The global environment is not considered when caching results simplifying moving files between multiple instances of R. Relies on more base functions than R.cache (e.g. cached results are saved using saveRDS() and readRDS()).
Version: 0.3.3
Date: 2021-07-15
Author: Augustin Luna, Vinodh Rajapakse
Maintainer: Augustin Luna <lunaa@cbio.mskcc.org>
Depends: R (≥ 3.1.1)
License: LGPL-2 | LGPL-2.1 | LGPL-3 [expanded from: LGPL]
Imports: digest
Suggests: knitr, rmarkdown
VignetteBuilder: knitr
RoxygenNote: 7.0.2
NeedsCompilation: no
Packaged: 2021-07-15 19:04:08 UTC; user
Repository: CRAN
Date/Publication: 2021-07-15 19:30:02 UTC

Add Memoization to a Function

Description

Add Memoization to a Function

Usage

addMemoization(fcn, verbose = FALSE)

Arguments

fcn

the function to be memoized

verbose

show debugging information

Value

memoized function

Examples

runifCached <- addMemoization(runif)


Call a Memoized Function

Description

Call a Memoized Function

Usage

memoizedCall(fcn, ...)

Arguments

fcn

a function

...

the arguments to the function

Value

result of memoized function

Note

If the environment variable DEBUG_SIMPLERCACHE is set, then the keyHash will be outputted. This can be used to identify cache RDS files.


Set Cache Root Path

Description

Set Cache Root Path

Usage

setCacheRootPath(path = tempdir())

Arguments

path

the cache root directory (DEFAULT: a temporary directory, but this can be change to a more permanent location)

Examples

setCacheRootPath()
## Not run: 
setCacheRootPath("~/.simpleRCache")

## End(Not run)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.