Description Usage Arguments Examples
Checks whether a file exists, and if so loads it. If the file doesn't exist, it runs an expression and optionally saves it to that filename. Useful for scripts that take a long time to run and where you want to save progress along the way.
1 |
filename |
Name of the file to try to load. Should be in RDS format. |
expr |
Expression to run if the file doesn't exist. |
save |
After expression is run, save the result as |
... |
Additional arguments to pass to |
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.