R/is_class.R
is_try_error.Rd
Is the element of class "try-error"?
is_try_error(.x)
the object to test
A logical
x <- attempt(log("a"), silent = TRUE) is_try_error(x) #> [1] TRUE