R/error.R

Defines functions throw_if_error

throw_if_error <- function(res) {
  if (methods::is(res, "error")) rlang::abort(res$value)
  return(res)
}

Try the orbweaver package in your browser

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

orbweaver documentation built on June 8, 2025, 11:40 a.m.