Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R will not run after latest windows 10 updates

Tags:

r

rstudio

I have updated my windows and R cannot run, and hence neither can R studio. When I run R GUI it just freezes and is unresponsive. I have allowed chromium exemption to the firewall

I am on Windows Insider program and has just updated to

Windows 10 Home, Insider Preview

Evaluation Copy.Build 20190.rs_prerelease.200807-1609

Note that R GUI freezes and then shuts down on its own, so maybe the problem is R GUI and not R Studio.

I get the following errors on R studio.

This site can’t be reached
127.0.0.1 refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

Cannot Connect to R
RStudio can't establish a connection to R. This usually indicates one of the following:

The R session is taking an unusually long time to start, perhaps because of slow operations in startup scripts or slow network drive access.
RStudio is unable to communicate with R over a local network port, possibly because of firewall restrictions or anti-virus software.
Please try the following:

If you've customized R session creation by creating an R profile (e.g. located at ~/.Rprofile), consider temporarily removing it.
If you are using a firewall or antivirus software which guards access to local network ports, add an exclusion for the RStudio and rsession executables.
Run RGui, R.app, or R in a terminal to ensure that R itself starts up correctly.
Further troubleshooting help can be found on our website:

Troubleshooting RStudio Startup
like image 754
John Karuitha Avatar asked Aug 17 '20 19:08

John Karuitha


2 Answers

This has been fixed with Windows 10 Insider Preview Build 20201 (released on August 26, 2020 in the Dev channel).The previous two builds were missing 64-bit APIs required by the prebuilt version of R.

like image 197
Hamada S. Badr Avatar answered Sep 27 '22 21:09

Hamada S. Badr


Same issue. Rollback to the previous version solves the problem.

I think it is about the update of the graphic features of Windows. Here is what Microsoft said in the build 20190 changelog:

Improved Graphics Settings experience

While this isn’t a new feature all together, we have made significant changes based on customer feedback that will benefit our customers’ Graphics Settings experience. We have made the following improvements:

  • We’ve updated the Graphics Settings to allow users to specify a default high performance GPU.
  • We’ve updated the Graphics Settings to allow users to pick a specific GPU on a per application basis.
like image 36
Kai He Avatar answered Sep 27 '22 20:09

Kai He