First draft of a file to demonstrate how to write to a csv file on the fly.
Completed the example of an R file to write out a csv file on the fly.