title: system2 functioning in R
body: <p>When I run a batch file through system2 in R:</p>
  
  <p>The following runs the batch file without any issue:</p>
  
  <pre><code>system2("Run.bat")
  </code></pre>
  
  <p>However, this one gives an error:</p>
  
  <pre><code>system2("Run", stdout=stdout, stderr=stderr)
  Warning message:
  running command '"Run.bat"' had status 1 
  </code></pre>
  
  <p>Any insights on what might be causing this?</p>