R/helper.R

Defines functions is_condition

"%??%" = function(lhs, rhs) {
  if (is.null(lhs)) rhs else lhs
}

is_condition = function(cond) {
  inherits(cond, "condition")
}

Try the conditions package in your browser

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

conditions documentation built on May 29, 2017, 11:03 p.m.