powered by
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 class.
TRUE
x
# NOT RUN { if(exists("nonExistObj")) rm(nonExistsObj) myObj <- try(nonExistObj/5, silent=TRUE) isError(myObj) # }
Run the code above in your browser using DataLab