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

前端 未结 2 1581
渐次进展
渐次进展 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: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
    

提交回复
热议问题