R版本的plyr包是否为R版本3.0.2?(复制)

时间:2021-12-18 13:54:52

This question already has an answer here:

这个问题已经有了答案:

I tried installing the plyr package and I got the warning message saying it isn't available for R version 3.0.2. Is this true or is no? If not, why would I be getting this message? I tried using two different CRAN mirrors and both gave the same message.

我尝试安装plyr包,我收到警告消息说,R版本3.0.2没有可用。这是真的吗?如果没有,为什么我要得到这个消息?我尝试使用两种不同的CRAN镜,并且都给出了相同的信息。

1 个解决方案

#1


17  

The answer is that the package is available in R (just checked this on my machine).

答案是,这个包在R中可用(在我的机器上检查一下)。

The particular error message that you are getting is very misleading. It is R's `catch-all' condition for anything that it doesn't understand going wrong during installation. You will get this error if you mis-spelled anything (Plyr instead of plyr) or your network connection is not working, or you are behind a proxy or whatever.

您所得到的特定错误信息非常具有误导性。在安装过程中,它不理解错误,这是R的“全部”条件。如果您错误拼写任何东西(Plyr而不是Plyr)或您的网络连接不起作用,或者您在代理或其他任何东西后面,您将会得到这个错误。

I typically get this problem when I am behind a proxy or I have mis-spelled something. But it can be because of any other number of reasons. I will suggest you make sure you can access the internet from inside R first.

当我在一个代理的后面或者我有拼写错误的时候,我通常会遇到这个问题。但也可能是其他原因造成的。我建议你先确定你能从R内部访问互联网。

If nothing works, you can always download the package from CRAN using a browser. If you are on Windows, you want the .zip version and if you are on *nix you want the .tar.gz version. (.tgz for Macs?). Then you can install it like so:

如果没有效果,您可以使用浏览器从CRAN下载包。如果你在Windows上,你想要。zip版本,如果你在*nix上,你想要。tar。广州的版本。(。tgz mac ?)。然后你可以这样安装:

setwd("/path/where/I/downloaded/the/compressed/file")
install.packages("plyr", repos=NULL)

See if that works.

看看这个行不行。

#1


17  

The answer is that the package is available in R (just checked this on my machine).

答案是,这个包在R中可用(在我的机器上检查一下)。

The particular error message that you are getting is very misleading. It is R's `catch-all' condition for anything that it doesn't understand going wrong during installation. You will get this error if you mis-spelled anything (Plyr instead of plyr) or your network connection is not working, or you are behind a proxy or whatever.

您所得到的特定错误信息非常具有误导性。在安装过程中,它不理解错误,这是R的“全部”条件。如果您错误拼写任何东西(Plyr而不是Plyr)或您的网络连接不起作用,或者您在代理或其他任何东西后面,您将会得到这个错误。

I typically get this problem when I am behind a proxy or I have mis-spelled something. But it can be because of any other number of reasons. I will suggest you make sure you can access the internet from inside R first.

当我在一个代理的后面或者我有拼写错误的时候,我通常会遇到这个问题。但也可能是其他原因造成的。我建议你先确定你能从R内部访问互联网。

If nothing works, you can always download the package from CRAN using a browser. If you are on Windows, you want the .zip version and if you are on *nix you want the .tar.gz version. (.tgz for Macs?). Then you can install it like so:

如果没有效果,您可以使用浏览器从CRAN下载包。如果你在Windows上,你想要。zip版本,如果你在*nix上,你想要。tar。广州的版本。(。tgz mac ?)。然后你可以这样安装:

setwd("/path/where/I/downloaded/the/compressed/file")
install.packages("plyr", repos=NULL)

See if that works.

看看这个行不行。