问题描述
我已经更新了Windows,R无法运行,因此R studio也无法运行。当我运行R GUI时,它会冻结并且没有响应。我已允许免除铬进入防火墙
我正在使用Windows Insider程序,并且刚刚更新为
Windows 10 Home,Insider Preview
Evaluation copy.Build 20190.rs_prerelease.200807-1609
请注意,R GUI会先冻结然后关闭,因此问题可能出在R GUI而非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
解决方法
此问题已通过Windows 10 Insider Preview内部版本 20201 (于2020年8月26日在Dev通道中发布)修复。前两个内部版本缺少64位API R的预建版本所必需。
,相同的问题。 回滚到以前的版本可以解决该问题。
我认为这与Windows图形功能的更新有关。 微软在build 20190 changelog中说过:
改进的图形设置体验
虽然这不是一项新功能,但我们已根据客户反馈进行了重大更改,这将使客户的图形设置体验受益。我们做了以下改进:
- 我们更新了“图形设置”,以允许用户指定默认的高性能GPU。
- 我们已经更新了“图形设置”,以允许用户基于每个应用程序选择特定的GPU。