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

Feature Request: show/display methods for R plots like ggplot2 #514

Open
schlichtanders opened this issue Nov 22, 2023 · 3 comments
Open
Labels

Comments

@schlichtanders
Copy link

It would be great if RCall would support rich outputs for plots, so that inside Pluto.jl RCall plotting works. (PythonCall has such support, but I guess Python's matplotlib is quite different from R's ggplot2).

@schlichtanders
Copy link
Author

Looking into IRKernel, the jupyter support, it seems a combination of the R package repr and R Base evaluate is needed.

Here is the entry point for IRKernel https://github.com/IRkernel/IRkernel/blob/master/R/execution.r#L313-L321

@frankier
Copy link
Contributor

Looks this PR does something related: #409

@schlichtanders
Copy link
Author

The PR gives a macro, which actually relies on being a macro in that it can change the code.

I would rather appreciate if the show and display functions could directly be overloaded to support rich html output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants