Which Mermaid diagram types can be rendered with DiagrammeR?

247 views Asked by At

I would like to create an Mermaid diagram of type erDiagram using DiagrammeR (version 1.0.9). Some simple diagrams types work, but others don't.

library(DiagrammeR)

## Diagram types which work (graph, gantt)
DiagrammeR("
graph LR
    A-->B
    A-->C
")

## Does not work
DiagrammeR("
erDiagram
    CUSTOMER ||--o{ ORDER : places
    ORDER ||--|{ LINE-ITEM : contains
    CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
")

Why do not all types work? Is there a way to still use all Mermaid diagram types with DiagrammeR?

0

There are 0 answers