如果我的版本不可用,如何在R中安装libxml2软件包? [英] How to install libxml2 package in R if it's not available for my version?

查看:301
本文介绍了如果我的版本不可用,如何在R中安装libxml2软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在R中安装"DESeq2"软件包,但是缺少xml2-config文件.我发现可以通过安装libxml2软件包来获得它,但是当我尝试使用它时,出现错误,指出它不适用于R版本3.4.2.任何人都知道该怎么办?

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?

推荐答案

运行@amarchin编写的内容后,它不能立即生效,但R建议安装libxml2-dev.所以我在终端中运行:sudo apt-get install libxml2-dev. 然后在R控制台中,我输入@amarchin中的代码:devtools::install_github("r-lib/xml2") 它起作用了:)

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

这篇关于如果我的版本不可用,如何在R中安装libxml2软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆