How pander differs from other literate programming tools
masterUnlike traditional tools like Sweave, knitr, or R2HTML, pander is designed to be a helper that can be called inside other literate programming solutions (e.g., inside knitr chunks).
Key characteristics include:
- Automatic Markdown Transformation:
Pandoc.brewautomatically results in Pandoc's markdown, which can be converted to almost any text format. - Object-to-Markdown Conversion: Instead of showing raw R console output,
pandertransforms R objects into formatted tables, lists, etc. - Source Control: By default, raw R code and results are not shown in the exported document, but you can use the
show.srcoption to include the original R commands. - Error/Warning Capture: All warnings, messages, and errors are captured during R expression evaluation.
- Automatic Plot Handling: Graphs and plots are automatically identified in code chunks, saved as
pngfiles (or other specified types likejpg,svg, orpdf), and linked in the resulting document. - Smart Caching:
panderincludes a built-in caching engine that hashes the R source, variable content, and function content to skip re-evaluating long-running commands.