WK 25
Reproducible Research and Collaboration (Open Format)
Monday, August 5, 2013: 11:30 AM-1:15 PM
101D, Minneapolis Convention Center
Organizer:
Edmund M. Hart, University of British Columbia
Co-organizer:
Scott A. Chamberlain, Rice University
The typical mode of collaborative writing in ecology consists of emailing Microsoft Word documents back and forth with different file names and track changes. The result is often a confusing mishmash of multiple versions of manuscripts, with different versions of figures and analysis - resulting in non-reproducible science. A long standing alternative is LaTeX/Sweave, a framework where snippets of R code are integrated into a Latex document, allowing collaborators to edit both R code and manuscript text into one document that can be rendered to PDF, html, Word, etc. A barrier to using LaTeX for many ecologists is that ecology as a discipline has no tradition of using LaTeX, which has a steep learning curve. Recently this framework of integrated code with manuscript text has been made easier with the release of knitr (http://yihui.name/knitr/), which uses Markdown (MD) instead of LaTeX. MD (http://daringfireball.net/projects/markdown/) is a simple text formatting syntax that can be quickly learned in just a few minutes. In addition, MD is much more human readable than LaTeX, facilitating collaborations. Last, writing documents in MD makes version control easier than ever using tools like git. Our workshop will focus on how knitr/MD can be used to generate reproducible research documents that ecologists can work on collaboratively, and even generate publication quality PDF’s. We will cover the basics of the MD syntax, how knitr code-snippets work, and how to include citations. We will demonstrate how version control systems can be used for collaborative writing. Attendees will leave with the skills to write their own reproducible research documents with integrated formatting of text and R code and figures.