Description Usage Arguments Value Examples
Check cache
for the cached output of fun
for the arguments
...
. If a cache entry is found, return it. Otherwise call fun
with arguments ...
(and cache
if cache is a parameter of
fun
), cache the result and then return it.
1 | cached_call(fun, ..., cache = NULL)
|
fun |
function to call |
... |
arguments to |
cache |
a Cache object |
The output of fun
1 2 3 4 | cache <- create_cache()
result <- cached_call(mean, x=1:10, cache=cache)
result2 <- cached_call(mean, 1:10, cache=cache)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.