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')

Try the routr package in your browser

Any scripts or data that you put into this service are public.

routr documentation built on Aug. 19, 2022, 5:23 p.m.