How to install libxml2 package in R if it's not available for my version?

那年仲夏 提交于 2019-12-11 09:47:57

问题


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?


回答1:


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 :)




回答2:


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



来源:https://stackoverflow.com/questions/47221409/how-to-install-libxml2-package-in-r-if-its-not-available-for-my-version

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