【发布时间】: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