BiocManager::install()报错

错误示例:

  1. > BiocManager::install("sva")
  2. 'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for details
  3. replacement repositories:
  4. CRAN: https://cran.rstudio.com/
  5. Bioconductor version 3.12 (BiocManager 1.30.13), R 4.0.5 (2021-03-31)
  6. Installing package(s) 'BiocVersion', 'sva'
  7. also installing the dependency genefilter
  8. Error in readRDS(dest) : error reading from connection

错误原因: BiocManager 包自身存在的bug,可以使用其他开发版本的代替
解决方案:

  1. install.packages("devtools") # unnecessary if you have it already
  2. devtools::install_github("Bioconductor/BiocManager", ref="ghost-binary-repo")

安装后重新启动R

注意:该方法目前是可以用的,后续是否可以使用未知