R/isTryError.R
isTryError.Rd
Does an Object Inherit from "try-error"?
isTryError(x)
R object
logical of length one, TRUE if x inherits from "try-error", otherwise FALSE
x
result <- try(stop("Stop!"), silent = TRUE) isTryError(result) # TRUE #> [1] TRUE