Description Usage Arguments Details See Also Examples
Wrapper function to implement caching for do.call using RDS-files.
1 | do.call.cached(rds, what, args, quote = FALSE, envir = parent.frame())
|
rds |
The name of the file in which the cache is to be stored. |
what |
Either a function or a non-empty character string naming the function to be called. |
args |
A list of arguments to the function call. The |
quote |
A logical value indicating whether to quote the arguments. |
envir |
An environment within which to evaluate the call. This will be most useful if |
If the rds file exists, the object will be loaded from the rds.
Otherwise the function what will be called via do.call and
an rds of the resulting object will be saved.
do.call which constructs and executes the function call.
1 2 | do.call.cached("testdata.rds", "read.csv", "testdata.csv")
do.call.cached("testdata.rds", read.csv, "testdata.csv")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.