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
How to Order a Data Frame by One Descending and One Ascending Column
Anti-Aliasing in R Graphics Under Windows (As Per MAC)
Is There a More Efficient Way to Replace Null with Na in a List
How to Remove Multiple Columns in R Dataframe
Ggplot2:Adding Two Errorbars to Each Point in Scatterplot
How to Use Plyr to Number Rows
Plotting Envfit Vectors (Vegan Package) in Ggplot2
Changing Font Size in R Datatables (Dt)
How to Call External R Script from R Markdown (.Rmd) in Rstudio
How to Open an .Xlsb File in R
Earliest Date for Each Id in R
Ggplot2: Geom_Text Resize with the Plot and Force/Fit Text Within Geom_Bar
How to Find the Percentage of Nas in a Data.Frame
Matrix Expression Causes Error "Requires Numeric/Complex Matrix/Vector Arguments"
Formatter Argument in Scale_Continuous Throwing Errors in R 2.15
Speedup Conversion of 2 Million Rows of Date Strings to Posix.Ct