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
I had a very similar problem. Installing the Debian/Ubuntu build-essential package solved the problem for me:
build-essential
sudo apt-get install build-essential
As it turns out, it's hard for R to compile things if a compiler isn't installed.