I have two computers and in one of them I can\'t manage to install the plyr package for R. This is the error I get:
* installing *source* package ‘plyr’ ...
** p
After having a similar issue myself when trying to install plyr in RStudio on Ubuntu I found the following solution:
sudo apt-get install r-cran-plyr
Just dropping it here to help prevent people from going down quite a rabbit hole, like I did, before finding a working solution.
I had a very similar problem. Installing the Debian/Ubuntu build-essential
package solved the problem for me:
sudo apt-get install build-essential
As it turns out, it's hard for R to compile things if a compiler isn't installed.
It looks like you have an old version:
R version 2.15.2
You can always try to update R to the most recent version.
Got it!
The solution in my case was:
First, update R:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo sh -c "echo 'deb http://streaming.stat.iastate.edu/CRAN/bin/linux/ubuntu quantal/' >> /etc/apt/sources.list"
sudo apt-get update
sudo apt-get install r-base r-base-dev
Then install codetools package from R:
install.packages("codetools")
After this, the installation of plyr
went smoothly.