[R] How to run R in batch mode

Beatriz ramos.beatriz at gmail.com
Fri Nov 18 16:20:30 CET 2005


Hello to everybody!

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"

or

 > R CMD BATCH test.txt

or

 > BATCH test.txt

or

 > R CMD BATCH  test.txt  test2.txt

or

 > R CMD BATCH  "test.txt"  "test2.txt"

or

 > R CMD BATCH --no-save <"test.txt">


I don't know what is wrong. Could you help me, please?

Thanks a lot




More information about the R-help mailing list