[R] Error handling

Christian Schäfer schaefer at pointone.de
Wed Sep 12 11:08:15 CEST 2007


Hi,

is there a possibility to catch an occurring error and do an appropriate 
error handling? (like the "try-catch"-statement in other programming 
languages)

For example:
It's quite annoying to run a script for hours only to detect an abortion 
of the script because of an "subscript out of bounds" error. In that 
case I would like to react accordingly, i.e. by skipping the actual step 
in the for-loop, or so.

Thanks,
Chris



More information about the R-help mailing list