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
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: