try_catch | R Documentation |
Try excute function which might throw exception.
try_catch(expr, catchfn, silent = TRUE)
expr |
Function which should be excuted. |
catchfn |
Function which will be called when expr throw exception with error message as argument. |
silent |
Logical value: if TRUE, the error message is not shown. |
return value if expr don't throw, or exception if it throw.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.