Description Usage Arguments Value Examples
expression, detects all assigned variables and saves them into a file. If the file given exists the variables are read from the cache file and not calculated again. In order to delete the cache simply delete the associated file.
1 | ex %c% filename
|
ex |
The R expression to be cached. Use brackets for multiline statements. |
filename |
The filename of the cache file. |
Nothing. Just caches all assigned variables in filename
.
1 2 3 | # Is executed only if the file does not exist, otherwise
# samples a and b are read from 'samples.Rd'
{ a <- rnorm(1e5) } %c% 'samples.Rd'
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.