Open juliasilge opened 5 months ago
Another one that does not work is ggiraph:
library(ggplot2)
library(ggiraph)
g <- ggplot(mpg, aes(x = displ, y = cty)) +
geom_point_interactive(
aes(tooltip = model, data_id = model),
size = 3, hover_nearest = TRUE
)
girafe(ggobj = g)
Reported in private beta: https://github.com/posit-dev/positron/issues/2843
This issue is also related to https://github.com/posit-dev/positron/issues/2559#issuecomment-2049254813, in that we could consider whether htmlwidgets should go to the Plots pane at all, given that the Viewer pane can have UI affordances like "open the URL in a browser" and an action like "save a plot" has such a different meaning for HTML content.
Another is mapview. https://github.com/posit-dev/positron-beta/discussions/182
Another is the bslib components htmlwidget support: https://rstudio.github.io/bslib/articles/custom-components/index.html#html-widgets
bslib::page_sidebar()
Reported in our private beta here: https://github.com/posit-dev/positron-beta/discussions/182#discussioncomment-9501885
Some additional feedback that sending html widgets to the Plots pane misses the "open in browser" affordance of the Viewer pane: https://github.com/posit-dev/positron/discussions/3686#discussioncomment-9905639
Also of note, some HTML outputs get sent to the Viewer pane, e.g. gt::gt(mtcars)
, but don't get the "open in browser" affordance or toolbar. https://github.com/posit-dev/positron/discussions/3686#discussioncomment-9905734
Additional feedback from someone who prefers that htmlwidgets go to the Viewer pane (not Plots): https://github.com/posit-dev/positron/issues/3750
In #1742 we worked on adding support for R htmlwidgets in the Plots pane, including getting the needed external libraries. With that initial work, plotly and leaflet work 🎉 but there are some remaining problems. As of Positron 2024.01.0 (Universal) build 30, I see problems with:
What I observe is that the new plot that gets generated looks empty/blank and there are errors like this: