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

SVG output from RCall not shown #213

Open
felixcremer opened this issue Nov 25, 2024 · 4 comments
Open

SVG output from RCall not shown #213

felixcremer opened this issue Nov 25, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@felixcremer
Copy link

After #211 the notebook with a RCall plot is working again, but the SVG output is empty. I am wondering whether we have to somehow close the device again after plotting.

@MichaelHatherly
Copy link
Collaborator

but the SVG output is empty

Does the intermediate .ipynb file contain the SVG data, or is it not even getting there? Or is it that quarto render is not displaying it even though it is being generated?

@MichaelHatherly MichaelHatherly added the bug Something isn't working label Nov 25, 2024
@felixcremer
Copy link
Author

There seems to be something in the data field of the ipynb but it doesn't look like an SVG file. The output ipynb from quarto render rplot.qmd --to ipynb is attached.
rplot.ipynb.txt

@felixcremer
Copy link
Author

When I look at the resulting SVG file that is put into the figures-html folder, it can be opened with firefox but not with my image viewer, but it is only an empty Axis without the data that I would have expected.

@MichaelHatherly
Copy link
Collaborator

Potentially then something going wrong during the render to SVG that isn't capturing the correct content. I'm not too familiar with R's SVG plot output unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants