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

前端 未结 2 1807
情书的邮戳
情书的邮戳 2021-01-22 12:21

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 tri

相关标签:
2条回答
  • 2021-01-22 13:08

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

    0 讨论(0)
  • 2021-01-22 13:14

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

    0 讨论(0)
提交回复
热议问题