Learn R Programming

ribiosUtils (version 1.5-6)

isError: Tell whether an object is an error

Description

Determines whether an object is of class try-error

Usage

isError(x)

Arguments

x

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

Value

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

Examples

Run this code
# NOT RUN {
if(exists("nonExistObj")) rm(nonExistsObj)
myObj <- try(nonExistObj/5, silent=TRUE)
isError(myObj)

# }

Run the code above in your browser using DataLab