“installation of package 'FILE_PATH' had non-zero exit status” in R

前端 未结 9 655
感情败类
感情败类 2020-12-01 09:31

By installing the package in R using the following command:

install.packages(\'FILE_PATH\', repos=NULL, type = \"source\")

I got the follow

9条回答
  •  醉话见心
    2020-12-01 10:03

    I had the same problem, but the answer from @little_chemist helped me sorting it out. When installing packages from a file in a unix OS (Ubuntu 18.04 for me), the file can not be zipped. You are using:

    install.packages("/home/p/Research/14_bivpois-Rcode.zip", repos = NULL, type="source")
    

    I noticed the solution was as simple as unzipping the package. Additionally, unzip all (installation related?) packages inside, as @little_chemist points out. Then use install.packages:

    install.packages("/home/p/Research/14_bivpois-Rcode", repos = NULL, type="source")
    

    Hope it helps!

提交回复
热议问题