在工作中,我通常必须设置setInternet2(use=TRUE)
选项才能访问更新包等。然而,在将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)
跟你的网络管理员说话。 让他们检查IE8的连接设置是否正确配置。 这也可能是他们阻止了某些类型的流量,无论端口是默认的IE8在您的工作场所使用。