Chapter 13 Dynamic Report
Literate programming is proposed by Knuth (1984) that both source code and documentation in the same program file.
Dynamic document is an implementation of literate programming that allows the combination of
- writing the programming code and
- writing to explain the result.
There are two ways to create in RStudio.
Sweave: based on LaTeX
Knitr: based on pandoc
Write dynamic document using sweave
Write dynamic document using knitr