Installation of 'tidyverse' failed everytime

I tried every possible way and looked for every possible solution but I couldn't install 'tidyverse'.
I tried the install.packages('tidyverse') and install.packages("tidyverse", dependencies = TRUE) methods. But all I get is :

ERROR: configuration failed for package ‘xml2’
* removing ‘/home/dhiraj/R/x86_64-pc-linux-gnu-library/4.1/xml2’
Warning in install.packages :
  installation of package ‘xml2’ had non-zero exit status
ERROR: dependency ‘openssl’ is not available for package ‘ids’
* removing ‘/home/dhiraj/R/x86_64-pc-linux-gnu-library/4.1/ids’
Warning in install.packages :
  installation of package ‘ids’ had non-zero exit status
ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’
* removing ‘/home/dhiraj/R/x86_64-pc-linux-gnu-library/4.1/httr’
Warning in install.packages :
  installation of package ‘httr’ had non-zero exit status
ERROR: dependency ‘httr’ is not available for package ‘gargle’
* removing ‘/home/dhiraj/R/x86_64-pc-linux-gnu-library/4.1/gargle’
Warning in install.packages :
  installation of package ‘gargle’ had non-zero exit status
ERROR: dependencies ‘httr’, ‘xml2’ are not available for package ‘rvest’
* removing ‘/home/dhiraj/R/x86_64-pc-linux-gnu-library/4.1/rvest’
Warning in install.packages :
  installation of package ‘rvest’ had non-zero exit status
ERROR: dependencies ‘gargle’, ‘httr’ are not available for package ‘googledrive’
* removing ‘/home/dhiraj/R/x86_64-pc-linux-gnu-library/4.1/googledrive’
Warning in install.packages :
  installation of package ‘googledrive’ had non-zero exit status
ERROR: dependencies ‘curl’, ‘gargle’, ‘googledrive’, ‘httr’, ‘ids’ are not available for package ‘googlesheets4’
* removing ‘/home/dhiraj/R/x86_64-pc-linux-gnu-library/4.1/googlesheets4’
Warning in install.packages :
  installation of package ‘googlesheets4’ had non-zero exit status
ERROR: dependencies ‘googledrive’, ‘googlesheets4’, ‘httr’, ‘rvest’, ‘xml2’ are not available for package ‘tidyverse’
* removing ‘/home/dhiraj/R/x86_64-pc-linux-gnu-library/4.1/tidyverse’
Warning in install.packages :
  installation of package ‘tidyverse’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpDpLXBJ/downloaded_packages’

Can you please post the complete error message you get when you try to install the package, I suspect you are omitting something important.

Thanks for the concern.
I managed to install the xml2, openssl and other packages via sudo privileges first and then installed tidyverse.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.