title: Quoted system command in R
body: <p>I would like to use the system() command in R to send:</p>
  
  <pre><code>system("awk -F "\"* ,\"*" 'NR==1 || $4 == 2925204' input.csv &gt; output.csv")
  </code></pre>
  
  <p>to terminal on my mac. In terminal, I could just run:</p>
  
  <pre><code>awk -F "\"* ,\"*" 'NR==1 || $4 == 2925204' input.csv &gt; output.csv
  </code></pre>
  
  <p>Unfortunately, I'm not sure of how to make R read the quotation marks correctly.  Could anyone help me out?</p>
  
  <p>Please note that I have had to add an extra space after the first asterisk so that stackoverflow's text editor will print this post correctly.</p>