R版3.0.2的Rly plyr包不可用吗? [重复]

时间:2022-05-18 13:17:32

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


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.gz版本。 (.tgz for Macs?)。然后你可以像这样安装它:

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

See if that works.

看看是否有效。

#1


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.gz版本。 (.tgz for Macs?)。然后你可以像这样安装它:

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

See if that works.

看看是否有效。