如何在 Debian 中安装 R Vennerable?

如何在 Debian 中安装 R Vennerable?

有很多关于 2014 年主题的线程,但他们的提案在 R 3.3.1 中不起作用,显然是因为不满足依赖关系,但我也无法安装它们

install.packages("Vennerable", repos="http://R-Forge.R-project.org")

以 root 身份输出

> install.packages("Vennerable", repos="http://R-Forge.R-project.org")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning: dependencies ‘graph’, ‘RBGL’ are not available
trying URL 'http://R-Forge.R-project.org/src/contrib/Vennerable_3.0.tar.gz'
Content type 'application/x-gzip' length 1727552 bytes (1.6 MB)
==================================================
downloaded 1.6 MB

ERROR: dependencies ‘graph’, ‘RBGL’ are not available for package ‘Vennerable’
* removing ‘/usr/local/lib/R/site-library/Vennerable’

The downloaded source packages are in
    ‘/tmp/Rtmp9Ubsk3/downloaded_packages’
Warning message:
In install.packages("Vennerable", repos = "http://R-Forge.R-project.org") :
  installation of package ‘Vennerable’ had non-zero exit status

> install.packages("graph")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning message:
package ‘graph’ is not available (for R version 3.3.1) 

> install.packages("RBGL")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning message:
package ‘RBGL’ is not available (for R version 3.3.1) 

R:3.3.1
操作系统:Debian 8.5
软件包文档:这里

答案1

这些软件包graphRBGL位于 Bioconductor 软件包存储库中,以下内容对我有用:

R> source("http://bioconductor.org/biocLite.R"); biocLite(c("graph", "RBGL"))
R> install.packages("reshape")
R> install.packages("Vennerable", repos="http://R-Forge.R-project.org")

相关内容