You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can always use other existing ways. DiagrammeR could possibly support that natively, but in the meantime, I can suggest using glue that uses { and } to deliminate R objects.
my_var<-10
mermaid(glue::glue("graph LR A-->B B[{my_var}]"))
If you want to use %%% as delimiters, you can use
mermaid(glue::glue("graph LR A-->B B[%%%my_var%%%]",
.open="%%%",
.close="%%%"))
Hello,
I've been pulling my hair out for this:
Is it possible to include r variables in a mermaid graph? Something like
my_var <- 10
If not, shall I initiate a pull request?
Thanks a lot!
The text was updated successfully, but these errors were encountered: