software · Q556
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]
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]
Capabilities & limitations
Parameterized rendering
supportedRenders report variants from supplied parameter values.[4]
Computational publishing · Command-line publishing workflow · Execution engine and output-format requirements apply
1 source · check evidence
YAML params; rendering report variants
vendor · checked 2026-10-07Interactive output portability
limitedHTML widgets and Shiny have different runtime requirements; static output does not retain live interaction.[6]
Computational publishing · Command-line publishing workflow · Execution engine and output-format requirements apply
1 source · check evidence
HTML widgets versus server-side Shiny; static outputs
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
References
- rmarkdown package metadata
License: MIT + file LICENSE
vendor · retrieved 2026-10-07 - R Markdown
Narrative, code and outputs
vendor · retrieved 2026-10-07 - R Markdown rendering
Rmd structure; knitr to Pandoc pipeline
vendor · retrieved 2026-10-07 - R Markdown parameters
YAML params; rendering report variants
vendor · retrieved 2026-10-07 - R Markdown output formats
Document and presentation formats; output functions
vendor · retrieved 2026-10-07 - R Markdown interactive documents
HTML widgets versus server-side Shiny; static outputs
vendor · retrieved 2026-10-07 - Quarto FAQ for R Markdown users
R Markdown support; migration; Lua custom formats
vendor · retrieved 2026-10-07
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 603 | 2026-10-12 22:36:47 | /* wbeditentity-create-item:0| */ sf:62cbf465-08f2-4404-a4a5-79346ad05eb7:v1 | Add R Markdown with cited notebook workflows, execution requirements and portability limits; documentation research only. | attribution: /proposals/62cbf465-08f2-4404-a4a5-79346ad05eb7 |