unable to install rvest package

对着背影说爱祢 提交于 2019-12-04 03:33:50
NoahC

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.

I need 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 are a bunch of missing dependencies. This answer might fit as a comment for Ubuntu 18.04, but I don't have that many reputation. Just try to make a summary of solutions work 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

tidyverse get!
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 experience. Hope this one has good Generalizability.

I was able to build the stringi package as this:

install.packages('stringi', configure.args='--disable-cxx11')

My answer is definitely late to this question. Nevertheless, somebody may find it useful.

I run into the same problem so I run this command on the shell:

sudo apt-get upgrade pkg-config

It worked for me.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!