Skip to content

Help with try or tryCatch

1 message · Liaw, Andy

#
Just a bit of nitpicking:  I believe the preferred way is to see if the
result of try() _inherits_ the try-error class.  This applies to all S3
classes.  I.e., the relevant line should be something like:

    if (inherits(answer, "try-error")) ...

Andy