如何诊断“无法创建套接字"? [英] How do I diagnose "unable to create socket"?

查看:41
本文介绍了如何诊断“无法创建套接字"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在帮助搜索框中输入字符串时,RStudio 突然给我这个错误:

Suddenly RStudio is giving me this error when I enter a string on the help search box:

starting httpd help server ...Error in tools::startDynamicHelp() : unable to create socket

当我在控制台输入以下内容时出现同样的错误:

I get the same error when I enter the following on the console:

> ?grep

我已更新到 RStudio 的当前版本,并且正在运行 R 的当前版本.我在 R 本身中尝试了相同的命令,但没有问题.

I have updated to the current version of RStudio and was running the current version of R. I tried the same command in R itself and there's no problem.

也许是巧合,当我尝试让 RStudio 更新软件包时,我收到以下消息:

Maybe coincidentally, when I try to get RStudio to update packages, I get this message:

Warning: unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.1
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.1

以下是 RStudio 在诊断报告文件中提供的内容:

Here is what RStudio provides in a diagnostics-report file:

2014 年 7 月 19 日 17:13:51 [rsession-John Smith] 错误 r 错误 4(R 代码执行错误)[errormsg=工具中的错误::startDynamicHelp():无法创建套接字|||];发生在:核心::错误 r::exec::::evaluateExpressionsUnsafe(SEXPREC*, SEXPREC*, SEXPREC**, r::sexp::Protect*) C:\Users\Administrator\rstudio\src\cpp\r\RExec.cpp:145;记录自:core::Error session::modules::help::initialize() C:\Users\Administrator\rstudio\src\cpp\session\modules\SessionHelp.cpp:894

19 Jul 2014 17:13:51 [rsession-John Smith] ERROR r error 4 (R code execution error) [errormsg=Error in tools::startDynamicHelp() : unable to create socket|||]; OCCURRED AT: core::Error r::exec::::evaluateExpressionsUnsafe(SEXPREC*, SEXPREC*, SEXPREC**, r::sexp::Protect*) C:\Users\Administrator\rstudio\src\cpp\r\RExec.cpp:145; LOGGED FROM: core::Error session::modules::help::initialize() C:\Users\Administrator\rstudio\src\cpp\session\modules\SessionHelp.cpp:894

卸载 R 和 RStudio,然后重新安装,问题没有消失.现在,当我启动 RStudio 时,我得到:

I have UNINSTALLED R and RStudio and then re-installed and the problem doesn't go away. Now when I launch RStudio, I get:

Error in tools::startDynamicHelp() : unable to create socket

推荐答案

嗯,一个答案就是尝试任何事情——即使是看起来很遥远的事情.事实证明,这个神秘且非常恼人的错误只发生在 64 位版本的 R 中(在 RStudio 中),而不是 32 位版本!以下是解决问题的方法:

Well, one answer is to just try anything -- even something that appears quite remotely possible. It turns out that that this mysterious and very irritating bug only happens in the 64-bit version of R (within RStudio), not the 32-bit version! Here's how to fix the problem:

选择32位版本即可解决!RStudio 太棒了,它的帮助系统不工作真是太可惜了!

Selecting the 32-bit version solves it! RStudio is SO great, it is a huge bummer for its help system to not be working!

这篇关于如何诊断“无法创建套接字"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆