7.2 What is R Markdown

R Markdown provides an authoring framework for data science. You can use a single R Markdown file to both

  • save and execute code, and

  • generate high quality reports that can be shared with an audience.

R Markdown was designed for easier reproducibility, since both the computing code and narratives are in the same document, and results are automatically generated from the source code. R Markdown supports dozens of static and dynamic/interactive output formats.