title: Is it possible to specify command line parameters to R-script in RStudio?
body: <p>I want to use RStudio to edit an R-script having command line parameters, e.g.,</p>
  
  <pre><code>my_rscript --dataset mydataset
  </code></pre>
  
  <p>and then to read the optiion value into an R variable, say, <code>dataset</code>, e.g., using <code>optparse</code> library.</p>
  
  <p>However, I could not find where acommand line can be provided in RStudio, so that I could use "Source on save" feature. Instead, I have to hardcode all program parameters in the program itself:</p>
  
  <pre><code>dataset &lt;- "mydataset"
  </code></pre>
  
  <p>which requires modifying the script text each time I need to specify different data.</p>
  
  <p>Does anybody know how to provide a command line information?</p>