Errors installing plyr / rcpp

后端 未结 4 1151
难免孤独
难免孤独 2021-02-15 12:59

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         


        
相关标签:
4条回答
  • 2021-02-15 13:36

    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.

    0 讨论(0)
  • 2021-02-15 13:37

    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.

    0 讨论(0)
  • 2021-02-15 13:42

    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.

    0 讨论(0)
  • 2021-02-15 13:54

    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.

    0 讨论(0)
提交回复
热议问题