R/try_catch_error_as_na.R

Defines functions try_catch_error_as_na

Documented in try_catch_error_as_na

#' Skip error messages, records NA, and continues to loop on the expression
#' @param expr expression
#' @export
try_catch_error_as_na <-
        function(expr) {
                tryCatch(expr, error = function(e) NA)
        }
patelm9/mirroR documentation built on Feb. 12, 2020, 2:41 p.m.