Description Usage Arguments Details Value
Evaluates an expression and caches its result. If a cache exists, the expression is re-evaluated only if one of the dependency files is more recent than the cache.
1 2 3 |
path |
the file caching the result of |
expr |
the expression to be evaluated if triggered |
force |
whether to force the evaluation of the expression |
depends_on |
a character vector of files on which the evaluation of the
expression |
io |
a list with two named function |
write_args |
a list of additional parameters to the |
read_args |
a list of additional parameters to the |
... |
additinal parameters to the |
The given expression expr
is evaluated only if one of the
following condition is true:
- the file identified in path
does *not* exist; or
- force
is TRUE
; or
- the latest modified time of the files in depends_on
is later than
the modified time of the file in path
.
the result of the evaluation of the expression expr
if
triggered, or its cached value stored in path
otherwise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.