title: write.csv() in dplyr chain
body: <p>I've come across this problem before, but just wrote the export function outside of the chain.  Is there a way to include a <code>write.csv</code> statement within a <code>dplyr</code> chain?</p>
  
  <pre><code>library(dplyr)
  
  data_set %&gt;%
  filter(Date == Sys.Date() - 1 | Date == Sys.Date()) %&gt;%
  write.csv('data_set_twodays.csv', row.names = F) %&gt;%
  filter(Date = Sys.Date()) %&gt;%
  write.csv('data_set_today.csv', row.names = F)
  NULL
  </code></pre>