ABSTRACT

Markdown can be fully integrated with knitr/rmarkdown for creating reproducible research HTML presentation documents. In addition, the rmarkdown package allows to write documents in Markdown and render them to PDF and MS Word. The chapter explains Markdown editors and the basic Mark-down syntax for creating simple reproducible documents, including many of the things covered for knitr/LaTeX documents such as headings and text formatting. Markdown was created specifically to make it easy to write HTML using a syntax that is human readable and possibly publishable without compiling. Like for R LaTeX, RStudio functions as a very good editor for R Markdown documents and regular nonknittable Markdown documents as well. Unlike LaTeX rendered with pdfLaTeX, Markdown can include almost any letters and characters included in the system. Markdown, like LaTeX and R, uses a backslash as an escape character.