makemermaid {qreport}R Documentation

makemermaid

Description

Create a Quarto Mermaid Diagram Chunk With Variable Insertions

Usage

makemermaid(.object., ..., file)

Arguments

.object.

character string or vector with mermaid markup

...

name=value pairs that makes values replace {{name}} elements in the markup

file

name of file to hold mermaid markup after variable insertions. Run this in Quarto using a chunk to looks like the following, which was for file='mermaid1.mer'.

```{mermaid}
%%| fig-cap: "Consort diagram produced by `mermaid`"
%%| label: fig-mermaid1
%%| file: mermaid1.mer
```

Details

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.

Value

nothing; used to knitr::knit_expand() mermaid markup

Author(s)

Frank Harrell

See Also

makegraphviz()


[Package qreport version 1.0-1 Index]