Use the logging api for handling errors/warnings for a specific function that might fail.
1 | handle_try_catch(f, errmsg, warnmsg, stop = TRUE)
|
f |
The function to wrap |
errmsg |
String. The message to put if an error occurs |
warnmsg |
String. The message to put if a warning occurs |
stop |
Bool. Cause the script to stop after logging if error occurs? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.