按照本网站的说明:https://www.bioconductor.org/install/我首先运行
source("https://bioconductor.org/biocLite.R")
运行正常,我得到以下输出。
Bioconductor version 3.6 (BiocInstaller 1.28.0), ?biocLite for help
按照上面的安装指南,我尝试运行下一个命令。
biocLite()
这会产生错误。
* installing *source* package ‘BiocGenerics’ ...
** R
** inst
** preparing package for lazy loading
Creating a new generic function for ‘append’ in package ‘BiocGenerics’
Creating a new generic function for ‘as.data.frame’ in package ‘BiocGenerics’
Creating a new generic function for ‘cbind’ in package ‘BiocGenerics’
Error : identical(as.call(parse(text = old_code)[[1L]]), body[[7L]][[3L]]) is not TRUE
Error in apply_hotfix73465(getGeneric("cbind")) : hotfix failed for generic function cbind()
Error : unable to load R code in package ‘BiocGenerics’
ERROR: lazy loading failed for package ‘BiocGenerics’
* removing ‘/home/jrisi/R/x86_64-pc-linux-gnu-library/3.4/BiocGenerics’
ERROR: dependency ‘BiocGenerics’ is not available for package ‘S4Vectors’
* removing ‘/home/jrisi/R/x86_64-pc-linux-gnu-library/3.4/S4Vectors’
ERROR: dependency ‘BiocGenerics’ is not available for package ‘Biobase’
* removing ‘/home/jrisi/R/x86_64-pc-linux-gnu-library/3.4/Biobase’
ERROR: dependencies ‘BiocGenerics’, ‘S4Vectors’ are not available for package ‘IRanges’
* removing ‘/home/jrisi/R/x86_64-pc-linux-gnu-library/3.4/IRanges’
ERROR: dependencies ‘BiocGenerics’, ‘Biobase’, ‘IRanges’, ‘S4Vectors’ are not available for package ‘AnnotationDbi’
* removing ‘/home/jrisi/R/x86_64-pc-linux-gnu-library/3.4/AnnotationDbi’
这是sessionInfo()
的输出R version 3.4.2 (2017-09-28)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 17.10
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] BiocInstaller_1.28.0
loaded via a namespace (and not attached):
[1] compiler_3.4.2 tools_3.4.2
我发现这篇帖子中的另一位用户似乎遇到了类似的问题,但它似乎并没有像错误一样被解决。如果可能的话,我宁愿不必下载修补版本的R.但如果这是我必须做的事情,那就这样吧。 https://support.bioconductor.org/p/101833/#101893
此外,我尝试使用--vanilla运行R,但它没有解决问题。
编辑:查看有人遇到类似问题的帖子https://support.bioconductor.org/p/101833/#101893,我按照他们建议我运行的底部某人的说明进行操作:
$ sudo apt-get install r-bioc-biocgenerics
这很有效!虽然我似乎不是一个永久的解决方案,因为我将来必须手动更新(我认为)。