【问题标题】:setInternet2 cannot connect windowssetInternet2 无法连接windows
【发布时间】:2011-08-01 17:08:35
【问题描述】:

在工作中,我通常必须设置 setInternet2(use=TRUE) 选项才能访问 cran 以更新软件包等。但是在他们将 win explorer 更新到版本 8 之后,这似乎不再起作用。这是尝试安装 e1071 后的输出,无论是否调用了 setInternet2 选项。

如果可以补救,有什么想法吗?

> install.packages("e1071")
Installing package(s) into ‘P:/R prg/R-2.13.1/library’
(as ‘lib’ is unspecified)
Warning in install.packages :
  unable to connect to 'cran.ma.imperial.ac.uk' on port 80.
Warning in install.packages :
  unable to connect to 'cran.ma.imperial.ac.uk' on port 80.
Warning in install.packages :
  unable to access index for repository http://cran.ma.imperial.ac.uk/bin/windows/contrib/2.13
Warning in install.packages :
  unable to connect to 'www.stats.ox.ac.uk' on port 80.
Warning in install.packages :
  unable to connect to 'www.stats.ox.ac.uk' on port 80.
Warning in install.packages :
  unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.13
Warning in install.packages :
  package ‘e1071’ is not available (for R version 2.13.1)

> setInternet2(use=TRUE)
> install.packages("e1071")
Installing package(s) into ‘P:/R prg/R-2.13.1/library’
(as ‘lib’ is unspecified)
Warning in install.packages :
  InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
  InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
  unable to access index for repository http://cran.ma.imperial.ac.uk/bin/windows/contrib/2.13
Warning in install.packages :
  InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
  InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
  unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.13

Warning in install.packages :
  package ‘e1071’ is not available (for R version 2.13.1)

【问题讨论】:

  • 您可以随时手动下载/安装。你有 CRAN 的浏览器访问权限吗?
  • 我最终将 cran 包镜像到我的 USB 上,明天我会带它们去上班。即使在工作中,浏览器也能正常工作。
  • @Misha 你确定setInternet2(TRUE) 是在R 的任何Web 访问之前执行的吗?我将utils::setInternet2(TRUE) 保留在R-2.13.0\etc\Rprofile.site 的第一行。它适用于我的 IE8。第二件事:当你在 IE 中打开存储库目录时它们有什么问题吗?
  • @Marek:Yup-setInternet2(TRUE) 在启动时设置,没有任何效果。我直接使用 IE 访问存储库没有任何问题。

标签: windows r internet-explorer-8 installation


【解决方案1】:

与您的网络管理员交谈。让他们检查 IE8 的连接设置是否配置正确。无论 IE8 在您的工作场所使用的默认端口是什么,它们也可能会阻止某些类型的流量。

【讨论】:

  • 我猜他们以某种方式阻止了它——但奇怪的是我可以使用 IE 8 访问相同的文件而无需任何 prbs。会不会是 setInternet2 使用的 .dll 文件被屏蔽了?
猜你喜欢
  • 2013-09-16
  • 1970-01-01
  • 2012-11-20
  • 2021-09-04
  • 2012-10-10
  • 2013-11-27
  • 2017-09-14
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多