powered by
Determines whether an object is of class try-error
try-error
isError(x)
Logical value, TRUE if x inherits the try-error
TRUE
x
class.
Any object, potentially produced within a try-error structure.
Jitao David Zhang <jitao_david.zhang@roche.com>
if(exists("nonExistObj")) rm(nonExistsObj) myObj <- try(nonExistObj/5, silent=TRUE) isError(myObj)
Run the code above in your browser using DataLab