Literate programming
module 1
week 2
knitr
R Markdown
scripts
Combining text, data, and code in R Markdown
Literate programming involves embedding all of the code used to generate statistics and figures into the documents used to present them. We will learn how to use R Markdown to embed data and code into our documents.
Learning objectives
- Distinguish between plaintext and binary file types
- Create and work with R scripts
- Learn basic Markdown syntax
- Create new R Markdown documents
- Insert R code into R Markdown documents both inline and as code chunks
Pre-meeting
To prepare for this class meeting, please do the following:
- Read R Markdown, complete Markdown tutorial
Class meeting
Homework after the class meeting
Wrap up this lesson
- Complete the exercises
For next class meeting
- Read R4DS1 20