-
Notifications
You must be signed in to change notification settings - Fork 506
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
Maps are blank when previewing in RStudio on Windows with R 4.4.0 #918
Comments
I am also running into this issue. Mapview and tmap operations that rely on leafltet are also not rendering in viewer, or when displayed in browser. |
There is a bug with R 4.4.0 on Windows that affects RStudio's preview of htmlwidgets (and other HTML content). Please follow the issue here for more information: rstudio/rstudio#14603 |
Solution to problem: I have just installed R Version 4.4.0 and upgraded Rstudio to v 2024.04.0 build 735. I was suddenly unable to use MapView with the same symptoms as described above. The Viewer pane just came up blank. This was also true for trying to display the widget produced by ggplotly in the plotly package. Just by fluke I discovered by putting the command
before the mapview command solved the issue. For example, try:
|
I'm still having the same issue. I tried the solution provided by @AndrewMcMillanLandcare, but it didn't work. |
Have you tried the instructions mentioned here: rstudio/rstudio#14603 (comment)? |
The instructions mentioned here by @gadenbuie worked, and now there's a more recent official release of R (4.4.1) where this issue comes fixed. |
This was working fine with my previous version of R (4.3.2) on RStudio, but after updating R to version 4.4.0 on Windows (haven't updated R on Linux yet), I'm getting a blank map viewer every time I try a leaflet map (including the
?leaflet
Examples), both with the previous and with the newest version of RStudio (released 2024-04-29). It's working OK on R without RStudio, though.The text was updated successfully, but these errors were encountered: