Skip to contents

Render

Compile pic source and render it.

rpic_svg()
Render pic source to an SVG string
rpic_png()
Render pic source to a PNG file
rpic_pdf()
Render pic source to a PDF file

Bundle and diagnostics

The full compile bundle — SVG, animation manifest, diagnostics and warnings.

rpic_manifest()
Compile to a JSON bundle (as a string)

knitr / Quarto

Inline pic diagrams in R Markdown and Quarto chunks.

rpic_knitr_engine()
knitr engine for rpic chunks
rpic_register_knitr()
Register the rpic knitr engine