title: Create empty csv file in R
body: <p>I have an R script that runs a set of functions on multiple datasets and creates a set of concentration-response models. What I would like to do is save out the model parameters and other results to a csv file.</p>
  
  <p>My plan is to have the script create an empty csv file and then as the script progresses, results are appended to that csv file. Every time the script is run I would like the results to be overwritten. </p>
  
  <p>I've tried to create an empty file using</p>
  
  <pre><code>system("copy /y NUL results.csv &gt; NUL")
  </code></pre>
  
  <p>to create the file, but the file is not created. This command (i.e., <code>copy/y NUL results.csv &gt; NUL</code>) works properly when run directly in the Windows terminal. </p>
  
  <p>Am I missing something simple? System is Windows XP.</p>
  
  <p>Thanks all!</p>