[R] how to print error message in batch mode

From: Elio Mineo <mineoeli_at_unipa.it>
Date: Thu 07 Apr 2005 - 20:45:16 EST


Dear list,
I am using R in batch mode:

$ R -q --no-save < prova > output

the input file "prova" has these commands:

data(USArrests)
x<-USArrests
hist(x)

of course, the command hist(x) produces an error. The error message is: Error in hist.default(x) : `x' must be numeric. Is there the possibility to save this error massage in the "output" file? Thanks in advance,
Angelo



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Apr 07 20:51:11 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:03 EST