I'm struggling with the different R executables. What exactly is the difference between R.exe (with or without CMD BATCH), Rcmd.exe, Rscript.exe and Rterm.exe when running command line in a batch file?
And what, for example, is the difference between
"C:\Program Files\R\R-2.10.1\bin\R.exe" --no-environ --no-save < "c:\temp\R\test.R" > "c:\temp\R\out.txt" 2>&1
and
"C:\Program Files\R\R-2.10.1\bin\R.exe" CMD BATCH --no-environ --no-save "c:\temp\R\test.R" "c:\temp\R\out.txt"
No difference in the output.
I cannot find anything about Rcmd.exe and Rscript.exe in the 3079 pages R reference manual.
(I'm using Windows)