Re: [R] testing for error

2006-10-09 Thread Henrik Bengtsson
tryCatch() is doing exactly what you need. I consider tryCatch() an updated and more flexible version of try() making the latter history. /H On 10/9/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > See: > > http://www.mail-archive.com/r-help@stat.math.ethz.ch/msg09925.html > > On 10/9/06, Jonat

Re: [R] testing for error

2006-10-09 Thread Gabor Grothendieck
See: http://www.mail-archive.com/r-help@stat.math.ethz.ch/msg09925.html On 10/9/06, Jonathan Williams <[EMAIL PROTECTED]> wrote: > Dear R Helpers, > > I want to test if a procedure within a loop has produced an error or not. > If the procedure has produced an error, then I want to ignore its resu

[R] testing for error

2006-10-09 Thread Jonathan Williams
Dear R Helpers, I want to test if a procedure within a loop has produced an error or not. If the procedure has produced an error, then I want to ignore its result. If it has not produced an error, then I want to use the result. The problem In order to run the loop without crashing if the procedure