knitr
A general-purpose tool for dynamic report generation in R
...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.