Learn R Programming

ribiosUtils (version 1.7.7)

isError: Tell whether an object is an error

Description

Determines whether an object is of class try-error

Usage

isError(x)

Value

Logical value, TRUE if x inherits the try-error

class.

Arguments

x

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

Author

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

Examples

Run this code

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

Run the code above in your browser using DataLab