Description Usage Arguments Author(s) Examples
Check if a file exists, and if it doesn't, run an expression, and save the resulting objects to the specified filename. Useful when writing Rmarkdown reports with time-intensive analyses; these can be run once and then saved.
1 | ifnofile(filename, expr)
|
filename |
Check whether this file exists or not. If it does exist, load the contents of that file into the global environment. |
expr |
An expression to be evaluated if the filename does not exist.
Multiple expressions should be enclosed in curly braces. Objects created by
this expression are stored in a file called |
Caspar J. van Lissa
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.