cachify.character: cachify turns a function into a caching function

Description Usage Arguments Details Value

View source: R/cachify.character.R

Description

cachify turns a function into a caching function

Usage

1
2
## S3 method for class 'character'
cachify(f, cacheDir, debug = FALSE)

Arguments

f

name of the function to cachify (character)

cacheDir

A directory where the results of the function are stored.

debug

Set to TRUE to receive info about cache retrieval vs. evaluation

Details

Will always assign the new function to .GlobalEnv, no matter where the original binding of the function was.

Value

No return. The original function with name f is replaced by the cachified version


fnbn/cachifyR documentation built on May 5, 2019, 6:58 p.m.