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