Packages

The R Markdown ecosystem is a collection of free and open source packages, developed and maintained by RStudio, PBC.

Installation and use

Install R Markdown by running:

install.packages("rmarkdown")

The rmarkdown package provides many different output formats “out of the box” including HTML pages, Word documents, and PDFs.

knitr???

If you are using RStudio as your integrated development environment (IDE), you do not need to explicitly install or load the rmarkdown package, as RStudio automatically does both when needed. You also will not need to install Pandoc (https://pandoc.org), because RStudio has bundled it for you.

Extension packages

For additional output format options, you can explore additional packages in the R Markdown ecosystem that give you access to more styles, layouts, and applications to extend R Markdown.

rmarkdown

Create computational documents that knit together text, code, results, and figures into polished outputs that are easy to read and share. 

flexdashboard

Turn a single R Markdown document into an interactive dashboard to help others see, explore, and gain insights from your analyses. 

distill

Distill for R Markdown is a web publishing format optimized for scientific and technical communication. 

bookdown

Write books and long-form articles/reports with R Markdown. 

blogdown

Build highly flexible and customized websites or blogs with the Hugo static site generator. 

blastula

Easily send great-looking HTML email messages from R. 

pkgdown

Designed to make it quick and easy to build a website to document your R package. 

rticles

Write scientific journal articles with custom LaTeX templates for R Markdown. 

learnr

Turn any R Markdown document into a hands-on, interactive tutorial. 

pagedown

Paginate the HTML Output of R Markdown with CSS for print. You only need a modern web browser (e.g., Google Chrome) to generate PDF. No need to install LaTeX to get beautiful PDFs. 

xaringan

Create HTML5 slides based on the JavaScript library remark.js. 

tufte

Create HTML pages, books, and PDFs with sidenotes, margin figures, and typography in the style of Edward Tufte. 

revealjs

Create HTML5 slides based on the JavaScript library reveal.js.