title: Write R data as csv directly to s3
body: <p>I would like to be able to write data directly to a bucket in AWS s3 from a <code>data.frame</code>\ <code>data.table</code> object as a csv file without writing it to disk first using the AWS CLI.</p>
  
  <pre><code>obj.to.write.s3 &lt;- data.frame(cbind(x1=rnorm(1e6),x2=rnorm(1e6,5,10),x3=rnorm(1e6,20,1)))
  </code></pre>
  
  <p>at the moment I write to csv first then upload to an existing bucket then remove the file using:</p>
  
  <pre><code>fn &lt;- 'new-file-name.csv'
  write.csv(obj.to.write.s3,file=fn)
  system(paste0('aws s3 ',fn,' s3://my-bucket-name/',fn))
  system(paste0('rm ',fn))
  </code></pre>
  
  <p>I would like a function that writes directly to s3? is that possible?</p>