isTryError: Checks whether some object is a try error.

View source: R/0helpers.R

isTryErrorR Documentation

Checks whether some object is a try error.

Description

Checks whether some object is 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)

AlexanderLyNL/bstats documentation built on Sept. 11, 2023, 4:10 p.m.