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

前端 未结 9 646
感情败类
感情败类 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:14

    I was having a similar problem trying to install a package called AED. I tried using the install.packages() command:

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

    but kept getting the following warning message:

    Warning message:
    In install.packages("/Users/blahblah/R-2.14.0/AED",  :
    installation of package ‘/Users/blahblah/R-2.14.0/AED’ had
    non-zero exit status
    

    It turned out the folder 'AED' had another folder inside of it that hadn't been uncompressed. I just uncompressed it and tried installing the package again and it worked.

提交回复
热议问题