on_error | R Documentation |
This function behaves as 'on.exit()', but is run on error, and supports mappers.
on_error(f)
f |
a function to call on error |
A local error handler.
y <- function(num) {
on_error(~ write(Sys.time(), "error_log.txt", append = TRUE))
log(num)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.