title: Exporting and opening CSVs using .rmd file in R
body: <p>I'm working on code in R that formats and creates data frames that I want to share using a .rmd file.  In my code, I use <code>write.csv</code> and <code>file.show</code> to create and open CSV files of the formatted datasets.  Since we are using .rmd to show the code I wrote for formatting, I was wondering if there's a way to also have <code>write.csv</code> and <code>file.show</code> run when someone opens the .rmd file?  I've looked around Google and RStudio to see if 1) this is even possible and 2) if it is possible, how to do it, but I haven't found anything.  So my question is, is an .rmd file even capable of exporting and opening files, and if so, how do I do it?</p>