R语言中Venn图绘制,安装vennerable包时出现以下问题,寻求老师帮忙,谢谢老师。

attachments-2019-07-vMTW3snn5d400823273d7.jpg

请先 登录 后评论

最佳答案 2019-08-25 13:09

试试用这个代码安装:

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


安装过程如下,这里有几个依赖包,dependencies ‘graph’, ‘RBGL’, ‘reshape’ are not available  报错,单独安装一下。再安装这个Vennerable包就好了

Type 'q()' to quit R.
> local({r <- getOption("repos") 
+ r["CRAN"] <- "http://mirrors.tuna.tsinghua.edu.cn/CRAN/" 
+ options(repos=r)})
> install.packages("Vennerable")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Warning in install.packages :
  package ‘Vennerable’ is not available (for R version 3.6.1)
> install.packages("Vennerable", repos="http://R-Forge.R-project.org")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Warning in install.packages :
  dependencies ‘graph’, ‘RBGL’, ‘reshape’ are not available
installing the source package ‘Vennerable’
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', 'reshape' are not available for package 'Vennerable'
* removing 'C:/Program Files/R/R-3.6.1/library/Vennerable'
Warning in install.packages :
  installation of package ‘Vennerable’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Administrator\AppData\Local\Temp\RtmpI5JS9I\downloaded_packages’
> library(Vennerable)
Error in library(Vennerable) : 不存在叫‘Vennerable’这个名字的程辑包
> install.packages(c('graph', 'RBGL', 'reshape'))
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Warning in install.packages :
  packages ‘graph’, ‘RBGL’ are not available (for R version 3.6.1)
trying URL 'http://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.6/reshape_0.8.8.zip'
Content type 'application/zip' length 170807 bytes (166 KB)
downloaded 166 KB
package ‘reshape’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Administrator\AppData\Local\Temp\RtmpI5JS9I\downloaded_packages
> if (!requireNamespace("BiocManager", quietly = TRUE))
+     install.packages("BiocManager")

> BiocManager::install("graph")
Bioconductor version 3.9 (BiocManager 1.30.4), R
  3.6.1 (2019-07-05)
Installing package(s) 'graph'
trying URL 'https://bioconductor.org/packages/3.9/bioc/bin/windows/contrib/3.6/graph_1.62.0.zip'
Content type 'application/zip' length 1764880 bytes (1.7 MB)
downloaded 1.7 MB
package ‘graph’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Administrator\AppData\Local\Temp\RtmpI5JS9I\downloaded_packages
Update old packages: 'BiocParallel', 'boot',
  'xml2'
Update all/some/none? [a/s/n]: 
n
> BiocManager::install("RBGL")
Bioconductor version 3.9 (BiocManager 1.30.4), R
  3.6.1 (2019-07-05)
Installing package(s) 'RBGL'
trying URL 'https://bioconductor.org/packages/3.9/bioc/bin/windows/contrib/3.6/RBGL_1.60.0.zip'
Content type 'application/zip' length 3558503 bytes (3.4 MB)
downloaded 3.4 MB
package ‘RBGL’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Administrator\AppData\Local\Temp\RtmpI5JS9I\downloaded_packages
Update old packages: 'BiocParallel', 'boot',
  'xml2'
Update all/some/none? [a/s/n]: 
n
> library(Vennerable)
Error in library(Vennerable) : 不存在叫‘Vennerable’这个名字的程辑包
> install.packages("Vennerable", repos="http://R-Forge.R-project.org")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
installing the source package ‘Vennerable’
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
* installing *source* package 'Vennerable' ...
** using staged installation
** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'Vennerable'
    finding HTML links ... 好了
    PlotDarkMatter                          html  
    PlotVennGeometry                        html  
    StemCell                                html  
    TissueDrawing-class                     html  
    Venn-class                              html  
    Venn                                    html  
    VennDiagrams                            html  
    VennDrawing-class                       html  
    VennSetSetLabels                        html  
    VennThemes                              html  
Rd warning: C:/Users/Administrator/AppData/Local/Temp/Rtmp4sXebl/R.INSTALL2da8499574a9/Vennerable/man/VennThemes.Rd:28: file link 'RColorBrewer' in package 'RColorBrewer' does not exist and so has been treated as a topic
Rd warning: C:/Users/Administrator/AppData/Local/Temp/Rtmp4sXebl/R.INSTALL2da8499574a9/Vennerable/man/VennThemes.Rd:53: file link 'RColorBrewer' in package 'RColorBrewer' does not exist and so has been treated as a topic
    Vennerable-internal                     html  
    Vennerable-package                      html  
    compute.S4                              html  
    compute.Venn                            html  
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
** testing if installed package can be loaded from final location
*** arch - i386
*** arch - x64
** testing if installed package keeps a record of temporary installation path
* DONE (Vennerable)
The downloaded source packages are in
‘C:\Users\Administrator\AppData\Local\Temp\RtmpI5JS9I\downloaded_packages’


请先 登录 后评论

其它 0 个回答