memoizedCall {R.cache} | R Documentation |
Calls a function with memoization
Description
Calls a function with memoization, that is, caches the results to be retrieved if the function is called again with the exact same arguments.
Usage
## Default S3 method:
memoizedCall(what, ..., envir=parent.frame(), force=FALSE, sources=NULL, dirs=NULL)
Arguments
what |
The |
... |
Arguments passed to the function. |
envir |
The |
force |
If |
sources , dirs |
Details
If the function
returns NULL
, that particular function call is
not memoized.
Value
Returns the result of the function call.
Author(s)
Henrik Bengtsson
See Also
Internally, loadCache
() is used to load memoized results,
if available. If not available, then do.call
() is used to
evaluate the function call,
and saveCache
() is used to save the results to cache.
[Package R.cache version 0.16.0 Index]