# R Markdown

Code\-backed report and document generation using R, knitr and Pandoc\.

ID: Q556 · Revision: 603

Type: software · License: MIT for the rmarkdown R package; dependency licenses apply[^rmd-license] · Status: active

Website: https://rmarkdown.rstudio.com/



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\.[^rmd][^rmd-work]

## 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\.[^rmd-work]

## 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\.[^rmd-params]

## 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\.[^rmd-formats]

## 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\.[^rmd-interactive]

## 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\.[^rmd-license][^q-faq]

## Substitution considerations

R Markdown can substitute for [Quarto](/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\.[^rmd-params][^rmd-formats][^q-faq]

## Capabilities and substitutions

### Parameterized rendering — supported

Renders report variants from supplied parameter values\.[^rmd-params]

Use case: Computational publishing · Platforms: Command\-line publishing workflow · Region: Execution engine and output\-format requirements apply

### Interactive output portability — limited

HTML widgets and Shiny have different runtime requirements; static output does not retain live interaction\.[^rmd-interactive]

Use case: Computational publishing · Platforms: Command\-line publishing workflow · Region: Execution engine and output\-format requirements apply

### [Substitute for Quarto](/quarto) — limited

Suitable for R\-centered reports using supported formats; custom formats and runtime configuration differ\.[^rmd-formats][^q-faq]

Use case: Code\-backed report publishing · Platforms: Command\-line publishing workflow · Region: Execution engine and output\-format requirements apply

## References

[^rmd-license]: [rmarkdown package metadata](<https://github.com/rstudio/rmarkdown/blob/main/DESCRIPTION>) — License: MIT \+ file LICENSE (vendor; retrieved 2026-10-07T04:23:06Z)

[^rmd]: [R Markdown](<https://rmarkdown.rstudio.com/>) — Narrative, code and outputs (vendor; retrieved 2026-10-07T04:22:17Z)

[^rmd-work]: [R Markdown rendering](<https://rmarkdown.rstudio.com/lesson-2.html>) — Rmd structure; knitr to Pandoc pipeline (vendor; retrieved 2026-10-07T04:23:16Z)

[^rmd-params]: [R Markdown parameters](<https://rmarkdown.rstudio.com/lesson-6.html>) — YAML params; rendering report variants (vendor; retrieved 2026-10-07T04:23:26Z)

[^rmd-formats]: [R Markdown output formats](<https://rmarkdown.rstudio.com/lesson-9.html>) — Document and presentation formats; output functions (vendor; retrieved 2026-10-07T04:23:26Z)

[^rmd-interactive]: [R Markdown interactive documents](<https://rmarkdown.rstudio.com/lesson-14.html>) — HTML widgets versus server\-side Shiny; static outputs (vendor; retrieved 2026-10-07T04:23:16Z)

[^q-faq]: [Quarto FAQ for R Markdown users](<https://quarto.org/docs/faq/rmarkdown.html>) — R Markdown support; migration; Lua custom formats (vendor; retrieved 2026-10-07T04:22:45Z)

Source revision: https://substitutefor.net/entities/Q556?revision=603
