Description Usage Arguments Value
This code allows you to run code safely within a loop or vectorised without errors breaking the operation. Should an error occur, the error message will be printed to the console and NA returned.
1 | error_proof(x, return_na = FALSE)
|
x |
The function/code chunk you which to safely run |
return_na |
Logical indicating whether ot not to return NA upon error. |
The output of the code chunk if successful, or NA if an error occurs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.