isError: Tests if x contains an error

View source: R/util.R

isErrorR Documentation

Tests if x contains an error

Description

Returns TRUE if x is a list with at least one element called error.

Usage

isError(x)

Arguments

x

any R object, but only an error in a list can be found.

Value

Returns FALSE or TRUE.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

isError("error")
isError(list(a=3:5,error=3))
isError(list(errrrror=3))

uzh/ezRun documentation built on Dec. 26, 2024, 9:53 a.m.