Description Usage Arguments Value Examples
Run functions safely
1 | error_proof(x, return_na = FALSE)
|
x |
A function. |
return_na |
Logical, true to return NA when function fails, FALSE to return nothing. |
The output x
when x
runs succesfully. When x
is unsuccessful, returns NA when return_na
is TRUE, otherwise NULL..
1 | error_proof(mean("a"), return_na=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.