title: R directly save data as zip file
body: <p>I found <code>zip</code> and the <code>RCompression</code> package but can they do:</p>
  
  <pre><code>write.zip(x, file = "foo.zip")
  </code></pre>
  
  <p>as you'd with <code>write.csv</code>?</p>
  
  <p>I'm also aware of <code>gzfile</code>.</p>