Skip to content
Prev 17002 / 398502 Next

BATCH versus pasting commands

On Fri, 8 Feb 2002, David Scott wrote:

            
The setting of error recovery is different under interactive and batch use.
R BATCH is batch use (of course) but so is R < infile.

To change that under batch use

1) Use options(error==expression(NULL)) to get continuation past errors,

or

2) wrap the test that might fail in a try() construct.

Option 2) is of course safer and so preferred.