unable to install rvest package

I needed dependencies such as Rcurl, XML, rvest, xml2, when I was trying to install tidyverse, DESeq2, RUVSeq in Rstudio Version 1.1.456 on a fresh installed Ubuntu 18.04. Anyway, there were a bunch of missing dependencies. This answer might fit better as a comment for Ubuntu 18.04, but I don't have that many reputation. So just trying to make a summary of solutions works for Ubuntu 18.04 here.
In the terminal, run:

 sudo apt-get install libcurl4-openssl-dev libssl-dev
 sudo apt-get install libxml2-dev

Then within Rstudio,

install.packages("xml2")
install.packages("rvest")
install.packages("tidyverse")  # might need other dependencies installed in Rstudio

Got tidyverse!
In the terminal:

sudo apt-get install libmysqlclient-dev  ## for RMySQL

Then within the Rstudio

source("https://bioconductor.org/biocLite.R")
biocLite("DESeq2")
biocLite('RUVSeq')             ## might have messages as following

installation path not writeable, unable to update packages: cluster, foreign, MASS, Matrix, mgcv, nlme, survival

In the terminal:

sudo R                      ## give R the root permission
## in the R session within the terminal
pks <- c('cluster', 'foreign', 'MASS', 'Matrix', 'mgcv', 'nlme', 'survival')
install.packages(pks)
q()

That's my own experience. Hope this one has a good Generalizability.


My system is Ubuntu 14.04 with R:3.2.3, and I had the same problem.

Then I checked err meg and tried to install library of libcurl4-openssl-dev and libxml2-dev:

sudo apt-get install libcurl4-openssl-dev

sudo apt-get install libxml2-dev

After installed, install.packages("rvest") was successful.

Tags:

R

Rvest