突然我在R中安装任何软件包时开始出现以下错误/警告
> utils:::menuInstallPkgs()
Warning: unable to access index for repository
http://ftp.iitm.ac.in/cran/bin/windows/contrib/3.0
Warning: unable to access index for repository
http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.0
Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) :
no packages were specified
Run Code Online (Sandbox Code Playgroud)
我尝试了两种方法.我试过从http://cran.r-project.org/web/packages/rjson/index.html下载"rjson"软件包--->从菜单中选择CRAN镜像然后安装软件包下载二进制zip文件...在此之后我得到上述错误.
我也试过install.packages("anypackage")现在我收到以下错误
Installing package into ‘C:/Users/ayush/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository
http://ftp.iitm.ac.in/cran/bin/windows/contrib/3.0
Warning: unable to access index for repository
http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.0
Warning message:
package ‘rjson’ is not available (for R version 3.0.1)
Run Code Online (Sandbox Code Playgroud)
我也试过改变CRAN镜子.但没有运气.
我之前也提到过这个问题,从R Forge安装包装时出现安装错误,我已经尝试了所提到的可能的解决方案.但不行.
这已经开始突然发生了.早些时候我常常下载它们.
我正在使用最新的R 3.0.1.我也试过切换到早期版本的R.没有运气.
我使用Windows 7 64位.安装任何软件包时都会发生这种情况.请帮忙.