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
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.