[R] how to print error message in batch mode
Elio Mineo
mineoeli at unipa.it
Thu Apr 7 12:45:16 CEST 2005
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
More information about the R-help
mailing list