Warning in Install.Packages:Installation of Package 'Tidyverse' Had Non-Zero Exit Status

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

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

r- install package returned non-zero exit status warning

I managed to resolve it by installing readxl. One of the warnings states that there is no package called 'readxl'

Can't install tidyverse package in R version 3.5.2

You have a very old version of R. You should update to the current version if you want things to go smoothly.

If you can't do that, here's what you'll have to do:

  • Install the version of Rtools suitable for R 3.5.x.
  • Install the packages you want. Some of them won't work, because they will need later versions of R, but won't declare that. So when you find one that fails, try installing the previous version of that package. If that also fails, try an even earlier one. Etc. Your R version was current in 2018, so you may need to go that far back in time to find compatible packages.
  • Once you finally have everything working, try to update your packages. Maybe some of them could be more recent versions, maybe not. Do them one at a time. Typically tidyverse needs about 90 of them, so this will take a while.

So I recommend that you update your R version.

non zero exit when installing package, only tidyverse

Looks like an issue with readr...

Error in library.dynam(lib, package, package.lib) : 
shared object ‘readr.so’ not found

Use the code below to check if the package is installed. If not, it will be installed

#Specify packages
packages = c("readr")

package.check <- lapply(packages, FUN = function(x) {
if (!require(x, character.only = TRUE)) {
install.packages(x, dependencies = TRUE)
library(x, character.only = TRUE)
}
})

#Verify they are loaded
search()

If it is installed, the file may be locked...

#If "failed to create lock" is the returned error, install with the below code;
install.packages("readr", dependencies=TRUE, INSTALL_opts = c('--no-lock'))

(https://github.com/tidyverse/tidyverse/issues/99)



Related Topics



Leave a reply



Submit