Is the element of class "try-error"?
is_try_error(.x)
the object to test
A logical
# NOT RUN { x <- attempt(log("a"), silent = TRUE) is_try_error(x) # }
Run the code above in your browser using DataLab