title: Sweave does not open file dialog file.choose()
body: <p>I work with R and Sweave. In order to select the most recent data file I try to open a file dialog with <code>file.choose()</code>. Simple as</p>
  
  <pre><code>filename &lt;- file.choose()
  
  tmp &lt;- read.csv(filename)
  </code></pre>
  
  <p>Unfortunately the R/Sweave comes up with an error <code>Dateiauswahl abgebrochen</code> (german) that just says <code>File selection terminated</code>.</p>
  
  <p>What's wrong?</p>