Dynamic documents for R: code, output and prose in one file
open sourceMITfree
R Markdown (the rmarkdown package) turns documents that mix prose with code chunks into finished reports: it runs the code with knitr and converts the result with Pandoc into HTML, PDF, Word, slideshows, books, dashboards, websites and more. Chunks can be in R, Python or SQL, so the figures and tables in a report are rebuilt from the data every time it's rendered. It's used interactively as a notebook in the RStudio IDE, or rendered from the R console or a script. Posit maintains it.
Problems it solves
- make my R analysis into a report that rebuilds itself from the data
- write a document where the charts and tables come from code
- turn an R notebook into HTML, PDF or Word
- make slides with live R output
Features
- code chunks in R, Python and SQL
- renders to HTML, PDF, Word and slideshows
- books, dashboards and websites
- notebook interface in the RStudio IDE
- Lua filters for Pandoc
Alternatives
The same job
These do what R Markdown does.
