14

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.

5
  • I was able to uninstall and install plyr from the Australia (Melbourne) CRAN mirror in R 3.0.2 on Ubuntu 12.04.3 without any warnings or errors. Dec 27, 2013 at 23:37
  • 1
    Look under Downloads here: cran.r-project.org/web/packages/plyr/index.html Grab the binary for your OS, and install from local binary package (see R's Packages & Data menu).
    – Maiasaura
    Dec 28, 2013 at 0:15
  • I have the same problem. cran.r-project.org/web/packages/plyr/index.html says plyr is at version 1.8.3 and needs R version 3.1.0 or above. How do I know what version of plyr is supposed to work with R version 3.0.2 (current version for Ubuntu 14.04 LTR)?
    – bli
    Jul 8, 2015 at 11:44
  • 1
    I found a solution here: <askubuntu.com/questions/605586/installing-plyr-on-ubuntu-14-04> The correct version of plyr (1.8-1) is available in Ubuntu as package r-cran-plyr. This still doesn't explain why trying to install plyr it from R doesn't work.
    – bli
    Jul 8, 2015 at 13:05
  • on 14.04 its only 1.8-1build1, so no luck there Jan 4, 2016 at 8:29

1 Answer 1

18

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

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.

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.

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:

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

See if that works.

Not the answer you're looking for? Browse other questions tagged or ask your own question.