R/aaa.R

Defines functions is.error_cond is.condition tri

# better try
tri <- function(expr) {
  tryCatch(expr, error = function(e) e)
}
is.condition <- function(x) inherits(x, 'condition')
is.error_cond <- function(x) is.condition(x) && inherits(x, 'error')
thomasp85/routr documentation built on Aug. 19, 2022, 5 p.m.