Warning in install.packages : installation of package ‘tidyverse’ had non-zero exit status

前端 未结 2 1577
渐次进展
渐次进展 2020-12-09 07:28

I am using this site for reference: http://r4ds.had.co.nz/introduction.html but I am unable to install the tidyverse package. Using dependencies = TRUE did not

相关标签:
2条回答
  • 2020-12-09 08:09

    The problem occurred because tidyverse has system dependencies (i.e., libcurl4-openssl-dev, libssl-dev, libxml2-dev). I wrote a blog post that explains the solution in more details.

    0 讨论(0)
  • 2020-12-09 08:13

    You find the answer in your error message:

    ------------------------ ANTICONF ERROR ---------------------------
    Configuration failed because libcurl was not found. Try installing:
     * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
    ....
    ....
    

    Copy and paste the following to your Terminal and than try installing tidyverse again. Should solve the problem.

    # Required for many packages
    sudo apt-get install -y libxml2-dev libcurl4-openssl-dev libssl-dev
    
    0 讨论(0)
提交回复
热议问题