Hello fellows, 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. Thanks in advance. Quant15 -- View this message in context: http://www.nabble.com/R-language-%3A-Error-catching-tp19756924p19756924.html Sent from the R help mailing list archive at Nabble.com.
On 01/10/2008 5:12 AM, quant15 wrote:> Hello fellows, > > 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.See ?try. Duncan Murdoch
> 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 wouldbe 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}}