Chapter 10 Writing academic papers with RMarkdown

10.1 Introduction

When it comes to communicating results, RStudio comes with the knitr package and RMarkdown. It is practical insofar as it allows you to combine both your code and its results, and the text you write to accompany it. Several output formats are supported, for instance PDF, docx, slideshows, HTML, etc. RMarkdown files have the suffix .Rmd.

I have prepared a basic example RMD document and the corresponding PDF (knit using tinytex), HTML, and MS WORD versions. You can download the zip file from my Dropbox. I invite you to have a look at the documents and how the RMD file translates to the different output formats.

10.2 Further resources