#' Wrapper that returns NA if evaluating expression returns an error
#' @param expr expression
try_catch_error_as_na <-
function(expr) {
tryCatch(expr, error = function(e) NA)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.