is.error: Is return value of try an exception?

View source: R/is_error.R

is.errorR Documentation

Is return value of try an exception?

Description

Checks if an object is of class “try-error” or “error”.

Usage

is.error(x)

Arguments

x

[any]
Any object, usually the return value of try, tryCatch, or a function which may return a simpleError.

Value

[logical(1)].

Examples

x = try(stop("foo"))
print(is.error(x))
x = 1
print(is.error(x))

BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.

Related to is.error in BBmisc...