ErrorHandler <- function(errors, ...) {
stopifnot(errors %in% c("log", "suppress"))
get(paste0("error", errors), mode = "function")(...)
}
errorlog <- function(...) {
function(e) {
futile.logger::flog.error(e$message)
e
}
}
errorsuppress <- function(...) {
identity
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.