2011-08-01 43 views
1

在工作中,我通常必须设置setInternet2(use=TRUE)选项才能访问cran以更新软件包等。但是,在将win explorer更新到版本8后,这似乎不再起作用。这是在尝试安装e1071以及调用setInternet2选项之后的输出。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) 
+0

您可以随时手动下载/安装。你有跟CRAN接触吗? –

+1

我最终把镜头包装到了我的USB上,我明天就带他们上班。即使在工作中浏览器的工作状况也很好。 – Misha

+3

@Misha你确定'setInternet2(TRUE)'是否在从R的任何Web访问之前执行?我在'R-2.13.0 \ etc \ Rprofile.site'的第一行保留了'utils :: setInternet2(TRUE)'。它适用于我与IE8。第二件事:当你在IE中打开版本库目录时,它们是否有问题? – Marek

回答

0

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

+0

我想他们会以某种方式阻止它 - 然而奇怪的是,我可以使用IE 8访问相同的文件,无需任何prbs。难道是setInternet2正在使用的.dll文件被查看或阻止了吗? – Misha