Skip to content
Prev 268050 / 398502 Next

Sweave : allowing errors in R code?

Hi Remko,

The default behaviour of R upon encountering an error is to stop
execution of whatever is happening. To circumvent that, you have to
catch the error, using try, or you have to change the reaction of R to
errors, using 'options'. The help page for ?stop gives an explicit
example of the latter. There aren't any other flavours. The error
caught by try can still be printed, and you can modify the behaviour
of 'stop' to only print the error but not break.

Tsjerk
On Tue, Aug 9, 2011 at 9:22 AM, Remko Duursma <remkoduursma at gmail.com> wrote: