Is the element of class "try-error"?

is_try_error(.x)

Arguments

.x

the object to test

Value

A logical

Examples

x <- attempt(log("a"), silent = TRUE)
is_try_error(x)
#> [1] TRUE