R markdown

A tool for writing scientific documents using R

Danielle Navarro
2021-05-30

Most of us learn how to write documents using word processing software, such as Microsoft Word or Google Docs. There are some good reasons why people do this, mostly because they are user friendly and convenient tools. However, there are some disadvantages to these tools and in this part of the course I will introduce you to a simple way to write scientific documents in plain text files, using a convention known as “markdown”. I’ll first explain why markdown is such a useful approach to writing documents, and then introduce an extension called “R markdown” that allows you to incorporate data analysis code into the document itself. As a side benefit, knowledge of R markdown is useful for other professional purposes: this website, for example, is written using R markdown!

The resources for this section are online. There’s a set of slides you can browse, and a pre-recorded YouTube playlist that will guide you through them:

If you have any questions or if something doesn’t work please feel free to message me on the class slack!