How to install libxml2 package in R if it's no

2020-04-14 08:28发布

I wanted to install "DESeq2" package in R, but it was missing the xml2-config file. I found somewhere that it can be obtained by installing the libxml2 package, but when I tried it gives error that it's not available for R version 3.4.2. Anyone has idea what to do?

2条回答
Ridiculous、
2楼-- · 2020-04-14 08:50

You can install the dev version: devtools::install_github("r-lib/xml2")

查看更多
够拽才男人
3楼-- · 2020-04-14 09:06

After running what @amarchin wrote it didn't work instantly but R suggested to install libxml2-dev. So I run: sudo apt-get install libxml2-dev in Terminal. And then in R console I typed the code from @amarchin: devtools::install_github("r-lib/xml2") And it worked :)

查看更多
登录 后发表回答