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

Shiny apps that use DiagrammeR don't work when deployed on shinyapps.io or Shiny Server Pro #134

Closed
wch opened this issue Oct 5, 2015 · 4 comments

Comments

@wch
Copy link

wch commented Oct 5, 2015

This happens because Shiny Server inserts a <base> tag in the HTML body, which causes problems with some SVG elements, like arrowheads and gradients.

Fortunately, the latest version of mermaid.js has a fix for this (thanks to yours truly), so simply including the latest version should fix it for DiagrammeR. See mermaid-js/mermaid#209 for more information about this problem.

@rich-iannone
Copy link
Owner

@wch thanks very much for doing all this! I think @timelyportfolio added in the latest release of mermaid.js in a recent PR (and it was accepted). Kent: can you verify that that version was indeed the latest build?

@wch
Copy link
Author

wch commented Oct 6, 2015

I think the needed version of mermaid.js (0.5.2) was released 2 days ago, and your version is 0.5.1 (I found this by searching the mermaid.slim.min.js file for version).

@rich-iannone
Copy link
Owner

@wch thanks again. The most recent version of mermaid.slim.min.js (0.5.3) is now part of the package (along with the updated mermaid.css file).

@wch
Copy link
Author

wch commented Oct 7, 2015

Great, thanks for updating it!

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