R/tryCatch2.R

Defines functions tryCatch2

Documented in tryCatch2

#' @title tryCatch2
#' @concept r_helper
#' @param expr
#'
#' @return
#' @export
#'
#' @examples
tryCatch2 <- function(expr) {
  tryCatch({
    expr
  }, error = function(e) {
    print(e)
  })
}
epongpipat/eepR documentation built on June 5, 2024, 10:03 a.m.