R Markdown Code-backed report and document generation using R, knitr and Pandoc.
Overview R Markdown is a document-authoring and rendering workflow that combines narrative text and executable code. Its R package converts .Rmd sources into reports, presentations and other outputs. The ecosystem supports R and other languages through its execution tooling, with static documents and interactive web formats serving different delivery needs.[2] [3]
Contents Sources and rendering An .Rmd file is plain text containing optional YAML metadata, code chunks and prose. Rendering passes the source through knitr to produce Markdown with computational results, then through Pandoc to produce the requested final format. RStudio offers a notebook interface and a Knit control, but the documented render function also exposes the workflow programmatically.[3]
Parameterized reports Parameters declared in the YAML header are available to code and can be overridden at render time. This supports producing versions of one report for different time periods, datasets or assumptions without maintaining separate copies of the narrative. The parameter values are inputs to rendering; they are not themselves an interactive interface in every delivered format.[4]
Output and interaction Supported formats include HTML, Word and PDF documents, along with presentation formats. Output functions expose format-specific options. This makes the source reusable across destinations, while still requiring checks on the chosen format's capabilities rather than assuming that all visual and interactive elements behave the same everywhere.[5]
Interactive documents HTML widgets provide browser-side JavaScript interaction. Shiny-based documents instead use server-side R computation in response to user actions. These are distinct deployment models: distributing an ordinary rendered file does not provide the server needed for a Shiny document. Static formats cannot retain the same live interaction; the introductory guide describes screenshots for interactive elements in such outputs.[6]
License and maintenance The rmarkdown package identifies its license as MIT with an accompanying license file. Posit states that R Markdown remains supported, while major new feature work focuses on Quarto.[1] [7]
Substitution considerations R Markdown can substitute for Quarto for established R-centered reporting workflows whose required formats are supported. Its parameterized rendering and ecosystem of output functions cover useful report-generation tasks. A switch from Quarto should account for its multi-engine design and custom-format differences, rather than relying solely on both tools producing PDF or HTML.[4] [5] [7]
Also included: 2 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.