Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mermaid version used in DiagrammeR #480

Closed
YangTSY opened this issue Dec 13, 2022 · 1 comment
Closed

Mermaid version used in DiagrammeR #480

YangTSY opened this issue Dec 13, 2022 · 1 comment

Comments

@YangTSY
Copy link

YangTSY commented Dec 13, 2022

A simple question: Does DiagrammeR automatically use the latest Mermaid version?

I was trying to run a simple flowchart in R,

The version in Mermaid Live Editor (version 9.2.2) is here

flowchart LR
    a o--o A
    b <--> B
    c x--x |NA|C

When I copy this code to R,

library(DiagrammeR)

# This doesn't work:
mermaid(
"graph LR
    a o--o A
    b <--> B
    c x--x |NA|C"
)

# This works:
mermaid(
  "graph LR
    a --> A
    b ==> B
    c --> |NA|C"
)

It feels like mermaid() doesn't support some features that are avaliable in mermaid.js.

@rich-iannone
Copy link
Owner

Closing this in favor of #475.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants