title: R.exe, Rcmd.exe, Rscript.exe and Rterm.exe: what's the difference?
body: <p>I'm struggling with the different R executables. What is the difference between R.exe (with or without CMD BATCH option), Rcmd.exe, Rscript.exe and Rterm.exe when running command line in a batch file?</p>
  <p>And what is the difference between:</p>
  <pre><code>R.exe --no-environ --no-save &lt; &quot;c:\temp\R\test.R&quot; &gt; &quot;c:\temp\R\out.txt&quot; 2&gt;&amp;1
  </code></pre>
  <p>and</p>
  <pre><code>R.exe CMD BATCH --no-environ --no-save &quot;c:\temp\R\test.R&quot; &quot;c:\temp\R\out.txt&quot;
  </code></pre>
  <p>No difference in the output.</p>
  <p>I cannot find anything about Rcmd.exe and Rscript.exe in the 3079 pages R reference manual.</p>
  <p>By the way: I am using Windows.</p>