title: run windows command from R
body: <p>In windows 7 at run prompt, this command succeeds in launching the .exe with the the optional input file "test2.dat"</p>
  
  <pre><code>c:/Program Files (x86)/IEUBKwin1_1 Build11/IEUBKwin32.exe k:/Project/EPA.Pb.IEUBK/batch.io/input/test2.dat
  </code></pre>
  
  <p>I want to do the same thing from within R.</p>
  
  <p>In R, this command succeeds in launching the same .exe</p>
  
  <pre><code>shell.exec("c:/Program Files (x86)/IEUBKwin1_1 Build11/IEUBKwin32.exe")
  </code></pre>
  
  <p>But I've been unable to find a solution within R that will launch the .exe with the optional input file. I've looked at <code>shell()</code>, <code>shell.exec()</code> and <code>system()</code> but I could not find the right incantation that will pass the optional input file to the .exe.</p>
  
  <p>Any thoughts?</p>