powered by
Test if object belongs to "error" class
is_error(x)
TRUE/FALSE
R variable
is_error(FALSE) is_error(simpleError("test"))
Run the code above in your browser using DataLab