. Advertisement .
. Advertisement .
How to solve the problem – installation of package had non-zero exit status? I have the sample detail:
install.packages('FILE_PATH', repos=NULL, type = "source")
While I was running it, I found the warning message:
Installing package into ‘/home/p/R/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’ is unspecified) Errore in rawToChar(block[seq_len(ns)]) : embedded nul in string: 'PK\003\004\024\0\002\0\b\0]\xadVCr\xcb\xea\xfcR\0\0\0\xa7\0\0\0\027\0\0\0bivpois-Rcode/.Rhistory+\xce/-JN\xd5PO\xca,+\xc8\xcf,\xd6+IL\xcaI\xd5\vR\xd7\xe4\xe5*\x86J\xe5\xe4\xea%\025`\b\xa5d\xa2\v楖\xe7%\xe6' Warning message: In install.packages("/home/p/Research/14_bivpois-Rcode.zip", repos = NULL, : installation of package ‘/home/p/Research/14_bivpois-Rcode.zip’ had non-zero exit status
That is my question in my midterm exam, and it is urgent. I searched the solutions on some websites, but I didn’t get it. I may miss any line or other changes. I appreciate your assistance!
The cause: Although the authors claim that the source is for “direct usage” in R, the.zip file they supply is not a legitimate R package. The
non-zero exit statusonly signifies that there was a problem with the “package” installation.
Solution: You can download the.RData file they give and import it into the workspace with
load('.RData')or you can manually extract the archive and load the features therein with, for example,
source('bivpois.table.R'). Instead of installing the functions as a package, this installs them into your system’s global environment, keeping them momentarily accessible.
The.RData from R can be downloaded, extracted, and loaded as described below:
Instead, you might use the following to make the.RData file accessible in the project folder so that it can be loaded afterward:
Follow these steps to install libs on Linux. curl: sudo apache install curl
sudo aptget install libssldev
libcurl: sudo apat-get install curl4-openssl -dev
xml2 – sudo apt/get install libxml2-dev