[R] Error Catching?

Marc Schwartz marc_schwartz at me.com
Thu Jun 4 20:05:11 CEST 2009


On Jun 4, 2009, at 12:56 PM, Brigid Mooney wrote:

> Hi,
>
> Is there an easy way to "catch" errors, in order to arrange for
> r-scripts to exit gracefully?
>
> I'm thinking of something along the lines of using is.na with an
> if/else statement, but for errors.
>
> Thanks!

See ?try and ?tryCatch

HTH,

Marc Schwartz




More information about the R-help mailing list