| knit_print.caugi_export | R Documentation |
Renders caugi export objects as code blocks in Quarto/R Markdown documents. This method is automatically invoked when an export object is the last expression in a code chunk.
## S3 method for class 'caugi_export'
knit_print(x, ...)
x |
A |
... |
Additional arguments (currently unused). |
This method enables seamless rendering of caugi graphs in Quarto and
R Markdown. The code block type is determined by the export format.
Simply use an export function (e.g., to_dot(cg)) as the last expression
in a chunk with output: asis:
#| output: asis to_dot(cg)
A knit_asis object for rendering by knitr.
Other export:
caugi_deserialize(),
caugi_dot(),
caugi_export(),
caugi_graphml(),
caugi_mermaid(),
caugi_serialize(),
export-classes,
format-caugi,
format-dot,
format-graphml,
format-mermaid,
read_caugi(),
read_graphml(),
to_dot(),
to_graphml(),
to_mermaid(),
write_caugi(),
write_dot(),
write_graphml(),
write_mermaid()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.