isTryError: Checks Whether a Vector of Object Inherits from the Class...

View source: R/helpers.R

isTryErrorR Documentation

Checks Whether a Vector of Object Inherits from the Class 'try-error'

Description

Checks whether any of the provided objects contains a try error.

Usage

isTryError(...)

Arguments

...

objects that need testing.

Value

Returns TRUE if there's some object that's a try-error, FALSE when all objects are not try-errors.

Examples

x <- 1
y <- "a"
z <- try(integrate(exp, -Inf, Inf))
isTryError(x, y)
isTryError(x, y, z)

safestats documentation built on Nov. 24, 2022, 5:07 p.m.