-
Notifications
You must be signed in to change notification settings - Fork 246
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
DiagrammeRsvg broken with the current development version of DiagrammeR #526
Comments
Looks like the viz.js version on DiagrammeRsvg is even more outdated |
I updated the version in DiagrammeRsvg but I get an error which states atob is undefined. |
I still see CI/CD failures: https://github.com/cynkra/dm/actions/runs/12661699082/job/35285626102#step:9:305 . @Yinimi: would you like to share your DiagrammeRsvg updates? |
I created a commit with the update of viz.js on this fork |
I had a closer look at how to make DiagrammeRsvg work (through I'd forgotten that the test suite (here in DiagrammeR) doesn't check for SVG output so merging wasn't the right thing to do (without separate tests of DiagrammeRsvg). @Yinimi is it okay if I revert this until there's a more complete solution on your end? You could always resubmit new PRs. I know it's not ideal having such an old version of Graphviz here but it at least works well enough for those that depend on it. |
This was already identified in a previous DiagrammeR issue #314 More info where deprecation of
A PR that seems to try to update to Viz 2.0 PhE/jupyterlab_graphviz#8 https://github.com/embarklabs/embark/pull/2323/files no0x9d/dependencies2graph@99b3a88 DoctorBud/graphviz-viewer@6694abb I don't know much about JavaScript, but these seemed helpful! Viz() seems to be replaced by In short, these lines would need to be updated. DiagrammeR and DiagrammeRsvg would need an update to CRAN at the same time. |
@krlmlr sorry previously I accidentially added a link to my changes in DiagrammeR. @rich-iannone I think I managed to add most of the required changes to the js code to call viz For any reason the js environment seems to be different compared with how it is called in DiagrammeR. If anyone knows where to get that function from we might get it to run. |
After #525:
Created on 2024-12-15 with reprex v2.1.1
How does the conversion to SVG work these days?
Downstream GitHub workflow: https://github.com/cynkra/dm/actions/runs/12267265984/job/34227313989#step:9:305
CC @Yinimi @rich-iannone.
The text was updated successfully, but these errors were encountered: