ABSTRACT

This chapter starts with a minimal R Markdown example, to introduce the basic syntax of R Markdown documents, and the connection with reproducible research. It shows a few motivating examples before going into the technical details, such as how to compile R Markdown documents, the output formats, the Markdown syntax, the R code chunk syntax, how to generate figures and tables, how to use other languages besides R, and how to generate interactive output documents.