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

Upgrade viz.js v2.0.0 #314

Open
fmannhardt opened this issue Oct 5, 2018 · 1 comment
Open

Upgrade viz.js v2.0.0 #314

fmannhardt opened this issue Oct 5, 2018 · 1 comment

Comments

@fmannhardt
Copy link

fmannhardt commented Oct 5, 2018

Viz.js has been recently released as v2.0.0:
https://github.com/mdaines/viz.js/releases/tag/v2.0.0
There are some breaking changes, for example, Viz is now a class instead of a function. This leads to issues when using two htmlwidgets that use different versions of viz.js (in this case my fmannhardt/processanimateR package on the same page resulting in the JS error:

TypeError: Cannot call a class as a function

Not sure how to solve this in general, but one solution would be to update of DiagrammeR to 2.0.0 also. Might also lead to other improvements.

@SKuehnel
Copy link

SKuehnel commented May 2, 2019

I have exactly the problem described by fmannhardt when rendering a graph in a shiny app. On the user interface side I use grVizOutput, server side renderGrViz and the render_graph function to render a dgr_graph object. While rendering in the R-Viewer works with render_graph, the Shiny App displays the error "TypeError: Cannot call a class as a function". I already tried a lot and unfortunately can't find a solution.

Do you have any hints or a workaround for the problem? I would be very grateful.

Greetings, Stephan.

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