[R] How to run R in batch mode

Paul Roebuck roebuck at mdanderson.org
Fri Nov 18 16:27:05 CET 2005


On Fri, 18 Nov 2005, Beatriz wrote:

> I want to run R in batch mode but it doen't work (Error: syntax error)
>
> I've found this in R help:
> R CMD BATCH [options] infile [outfile]
>
> I have tried differents commands:
> (I have been working in the same directory I have "test.txt" file and
> "test2.txt" would be the output file)
>
>  > R CMD BATCH test.txt
>
> [SNIP additional tries]
>
> I don't know what is wrong. Could you help me, please?

Isn't it possible that it is working just fine and you really
do have a syntax error in your R source file (better named
as 'test.R') instead?

----------------------------------------------------------
SIGSIG -- signature too long (core dumped)




More information about the R-help mailing list