[R] R language : Error catching

Richard.Cotton at hsl.gov.uk Richard.Cotton at hsl.gov.uk
Wed Oct 1 12:35:18 CEST 2008


> I was wondering : is there a way to catch errors in R language built
> programmes like C++ or Visual Basic would do (ex : on error go to ....) 
? So
> far i am using batteries of "if ... else" in my algorithms but it would 
be a
> lot easier to catch errors on the whole.

Take a look at 
?try
?tryCatch
?stop


Regards,
Richie.

Mathematical Sciences Unit
HSL


------------------------------------------------------------------------
ATTENTION:

This message contains privileged and confidential inform...{{dropped:20}}



More information about the R-help mailing list