knitr
A general-purpose tool for dynamic report generation in R
knitr is an R package that acts as a literate programming engine, combining code execution and document generation. It executes code embedded in Markdown, LaTeX, or other formats and produces output with results interleaved into final documents. It powers R Markdown and supports caching, chunk options, graphics, and extensibility for reproducible analysis.