R package installation in Linux

前端 未结 2 1673
旧时难觅i
旧时难觅i 2021-01-21 06:53

I am trying to install a R package in Ubuntu using the following commands:

R CMD INSTALL rpart_4.1-5.tar.gz
install.packages(\"/home/rpart_4.1-5.tar.gz\", repos          


        
相关标签:
2条回答
  • 2021-01-21 07:29

    Your system doesn't have make utility for compilation.

    Please execute following command to install make in your system.

     sudo apt-get install build-essential
    
    0 讨论(0)
  • 2021-01-21 07:29

    If you just do

     sudo apt-get install r-base-dev
    

    you all the key dependencies relevant for R package building which is what you want here. This includes the compiler, make etc as part of built-essential as well as specific libraries needed by R. There is a reason we created this package :)

    If your machine does not have permanent internet access, look for previously-asked questions about "apt-get without internet access" etc.

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