Errors installing plyr / rcpp

半城伤御伤魂 提交于 2019-12-03 13:56:01
rgalhama

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.

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.

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.

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!