makemermaid | R Documentation |
Create a Quarto Mermaid Diagram Chunk With Variable Insertions
makemermaid(.object., ..., file)
.object. |
character string or vector with |
... |
name=value pairs that makes values replace |
file |
name of file to hold ```{mermaid} %%| fig-cap: "Consort diagram produced by `mermaid`" %%| label: fig-mermaid1 %%| file: mermaid1.mer ``` |
Takes a character string or vector and uses knitr::knit_expand()
to apply variable insertions before the diagram is rendered by Quarto. See this for an example.
nothing; used to knitr::knit_expand()
mermaid markup
Frank Harrell
makegraphviz()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.