R/tryerror.R
isError.Rd
Determines whether an object is of class try-error
try-error
isError(x)
Any object, potentially produced within a try-error structure.
Logical value, TRUE if x inherits the try-error
TRUE
x
class.
Jitao David Zhang <jitao_david.zhang@roche.com>
if(exists("nonExistObj")) rm(nonExistsObj) myObj <- try(nonExistObj/5, silent=TRUE) isError(myObj) #> [1] TRUE