-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
RStudio Viewer does not function properly on the new R version R-4.4.0 on Windows 11. #14603
Comments
@bergarog Thank you for raising the issue! I can reproduce this in RStudio Desktop Pro 2024.04.0+735.pro3 on Windows 11. We'll review the issue. Note: Other plotting works, e.g. |
Can we try this out with a few other |
Seems to be working OK on Mac Version 2024.04.0-daily+696 (2024.04.0-daily+696) with R v4.4 so maybe a Windows-only bug. |
FWIW, I'm having the same trouble with plotly, mapview/leaflet, ggiraph, and DT on RStudio/2023.12.1+402, R-4.4.0 on Windows 10. I was able to "Save as webpage" and the plot/map/interactive plot/DT saved successfully. |
I can also confirm that the issue seems to occur only on Windows with R 4.4.0; it seems to affect all kinds of htmlwidget output. I suspect we'll need to fix this in a patch release of RStudio. |
Many thanks for investigating this issue. As a temporary solution, I've a minimal print method that utilizes Chrome as viewer. Perhaps this might also help someone else.
Thanks to https://stackoverflow.com/questions/44048347/r-open-plotly-in-standalone-window, with no guarantee that this will work for others. |
A simpler reprex:
This seems to fail ~50% of the time. That is, the problem seems specific to attempts to view static viewer content in the Viewer pane. As far as I can see, other web content (like Shiny applications) appear to still be fine, even when displayed in the Viewer pane. Perhaps this is related to some of the work done to speed up the handling of static web resources that was done? |
These requests actually get routed through R's help server, so it's the one responsible for retrieving the requested file in these contexts. The simplest fix here is probably to ... not do that. |
Can confirm this issue for Windows 10, R v.4.4.0, RStudio 2024.04.0+735 "Chocolate Cosmos". @bergarog's print.htmlwidget is a great workaround though! |
QA note: Also to reproduce, create a new D3 file (which is JavaScript) with the default content and click "Preview". |
To confirm, this issue will likely affect all static HTML content that we try to show in the Viewer, which includes all sorts of |
This issue should now be resolved in the latest patched builds of R 4.4.0 for Windows. Those are available here: https://cran.r-project.org/bin/windows/base/rpatched.html If you're encountering this issue, can you please try installing and using this patched build of R, and let us know if the problem persists? |
@kevinushey - thanks. Confirmed working with R version 4.4.0 Patched (2024-05-03 r86521 ucrt) -- "Puppy Cup" |
@kevinushey Works |
@kevinushey - working well now, many thanks. |
@kevinushey - R Version 4.4.0 Patched (2024-05-03 r86521 ucrt) -- 'Puppy Cup' works in RStudio 2024.04.0 Build 735 and RStudio 2024.07.0 Build 75. Thank you very much! |
Verified that earlier versions of RStudio Desktop also now work on Windows 11, including 2023.03.2+454 and 2023.12.1+402 (in addition to 202404.0+735 an 2024.07.0+102).
|
Just changing the close type |
FYI, on Win 11 edu and RStudio Desktop Pro 2024.04.0 Build 735.pro3, the same issue/solution happened with You can use as a reprex tar_dir({ # tar_dir() runs code from a temp dir for CRAN.
tar_script({
tar_option_set()
list(
tar_target(y1, 1 + 1),
tar_target(y2, 1 + 1),
tar_target(z, y1 + y2, description = "sum of two other sums")
)
})
tar_visnetwork()
tar_visnetwork(allow = starts_with("y")) # see also any_of()
}) |
Had the same problem on Windows 10 and with R Version 4.4.0 Patched (2024-05-03 r86521 ucrt) -- 'Puppy Cup' works in RStudio 2024.04.1 Build 748 was fixed, please the moment. https://cran.r-project.org/bin/windows/base/rpatched.html Thanks to those who provided this output |
Note from @kevinushey: if you're encountering issues with plots and HTML widgets not displaying in the RStudio Viewer pane with R 4.4.0 on Windows, the issue should be resolved with the latest patch releases of R available at https://cran.r-project.org/bin/windows/base/rpatched.html. Thanks!
Verify fixed in:
System details
Steps to reproduce the problem
Windows 11
Install R-4.4.0
Install latest Version of RStudio
Describe the problem in detail
RStudio Viewer does not function properly on the new R version R-4.4.0 on Windows 11. The Viewer remains blank.
I encountered this issue using RStudio Version 2023.12.1-402, and after updating to the latest build, 2024.04.0+737, the problem persisted.
However, when I ran the same code in the standard R Console, the expected Scatterplot appeared in my default browser.
Describe the behavior you expected
When reverting to R-4.3.3, everything functions as normal.
The text was updated successfully, but these errors were encountered: