Lesson 14: Advanced Documentation

Overview Section

The "spin" functionality in knitr for producing html from R script files (.R files) is very useful, and nearly perfrect for homework. But what do you do if you want to create more polished reports - say for you supervisor at work? Here we'll explore the "Rmarkdown" document language that is part of knitr.


Upon completion of this lesson, you should be able to:

  • Create Rmarkdown documents and compile them using knitr
  • Use chunk options to control size of figures and display of code
  • Use the "projects" feature in RStudio to manage multiple porjects in R
  • Create basic pdf files using LaTex with knitr

The R code file and data files for this lesson can be found on the Essential R - Notes on learning R page.