[R] how to print error message in batch mode
Jan T. Kim
jtk at cmp.uea.ac.uk
Thu Apr 7 15:32:36 CEST 2005
On Thu, Apr 07, 2005 at 01:58:55PM +0200, Elio Mineo wrote:
> This solution is fine, too.
> The Achim's solution is what I have asked with this slight modification:
>
> $ R -q --no-save < prova > prova.out 2>> prova.out
The canonical and perhaps "more correct" way to redirect stderr into
stdout is 2>&1, as in
R -q --no-save < prova > prova.out 2>&1
Best regards, Jan
--
+- Jan T. Kim -------------------------------------------------------+
| *NEW* email: jtk at cmp.uea.ac.uk |
| *NEW* WWW: http://www.cmp.uea.ac.uk/people/jtk |
*-----=< hierarchical systems are for files, not for humans >=-----*
More information about the R-help
mailing list