is.condition(x, ...) is.error(x, ...) is.warning(x, ...) is.message(x, ...)
Check if the condition is of the appropriate type