isError: Tell whether an object is an error

Description Usage Arguments Value Author(s) Examples

View source: R/tryerror.R

Description

Determines whether an object is of class try-error

Usage

1

Arguments

x

Any object, potentially produced within a try-error structure.

Value

Logical value, TRUE if x inherits the try-error class.

Author(s)

Jitao David Zhang <jitao_david.zhang@roche.com>

Examples

1
2
3
if(exists("nonExistObj")) rm(nonExistsObj)
myObj <- try(nonExistObj/5, silent=TRUE)
isError(myObj)

ribiosUtils documentation built on March 13, 2020, 2:54 a.m.