attempt (version 0.3.1)

is_try_error: Is the element of class "try-error"?

Description

Is the element of class "try-error"?

Usage

is_try_error(.x)

Arguments

.x

the object to test

Value

A logical

Examples

Run this code
# NOT RUN {
x <- attempt(log("a"), silent = TRUE)
is_try_error(x)

# }

Run the code above in your browser using DataLab