isTryError: Does an Object Inherit from "try-error"?

View source: R/isTryError.R

isTryErrorR Documentation

Does an Object Inherit from "try-error"?

Description

Does an Object Inherit from "try-error"?

Usage

isTryError(x)

Arguments

x

R object

Value

logical of length one, TRUE if x inherits from "try-error", otherwise FALSE

Examples

result <- try(stop("Stop!"), silent = TRUE)
isTryError(result) # TRUE

KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.