简体   繁体   English

在Mac OSX雪豹上更新后,install.packages()出现问题

[英]Trouble with install.packages() after update on Mac OSX snow leopard

Earlier today I updated R to 2.14.2 so that I could install the new ggplot2. 今天早些时候,我将R更新为2.14.2,以便可以安装新的ggplot2。 Now I'm getting the following error anytime I try and use install.packages(): 现在,每次尝试使用install.packages()时,都会出现以下错误:

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

I've tried to rectify my mistake by removing R and installing an older version. 我试图通过删除R并安装旧版本来纠正错误。 I used the command: 我使用了命令:

rm -rf /Library/Frameworks/R.framework /Applications/R.app

Even after that reinstallation I got the same error (using 2.14.1 and 2.14.0). 即使在重新安装后,我仍然遇到相同的错误(使用2.14.1和2.14.0)。

Is this a problem anyone else is having on snow leopard? 这是其他人在雪豹身上遇到的问题吗?

I had the same issue tonight. 今晚我遇到了同样的问题。 After reading your post and checking R-sig-mac, it appears that there was a sync problem to all the mirrors. 阅读您的帖子并检查R-sig-mac后,似乎所有镜像都存在同步问题。 In fact, the PACKAGE file for 2.14 for contributed packages on all these mirrors are empty. 实际上,所有这些镜像上用于贡献包的2.14的PACKAGE文件都是空的。 Util this is fixed, you can try hit the master site by setting 使用此方法后,您可以尝试通过设置

repos = 'http://cran.r-project.org'

inside the install.packages() call. 在install.packages()调用中。

I just tried and it works. 我只是尝试了,而且效果很好。

Kajia Yuan (kajia.yuan@gmail.com) 袁嘉嘉(kajia.yuan@gmail.com)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM