[R] errors terminating script

Terry Westley twestley at buffalo.veridian.com
Mon Oct 25 16:52:53 CEST 1999


When running R in batch mode, I would like to detect certain
errors and prevent them from terminating the script.

Specifically, when I read in a file with read.table() and the
file is empty, the script terminates.  There are occasions
when an empty file is OK, so I'd like to continue running.

How can I catch such errors?

--
Terry J. Westley, Software Systems Engineering Supervisor
Veridian Engineering, Calspan Operations
P.O. Box 400, Buffalo, NY 14225
twestley at buffalo.veridian.com    http://www.veridian.com

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list