美文网首页
linux系统安装R语言的BiocManager包遇到的报错

linux系统安装R语言的BiocManager包遇到的报错

作者: 小明的数据分析笔记本 | 来源:发表于2021-04-19 21:41 被阅读0次
image.png

不指定镜像

install.packages("BiocManager")

报错

Warning in install.packages :
  unable to access index for repository https://cloud.r-project.org/src/contrib:
  cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Installing package into ‘/home/MingYan/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)

指定镜像也报错

install.packages("BiocManager",
                 repos = "https://mirrors.tuna.tsinghua.edu.cn/CRAN/")

Warning in install.packages :
  unable to access index for repository https://cloud.r-project.org/src/contrib:
  cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Installing package into ‘/home/MingYan/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
  unable to access index for repository https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib:
  cannot open URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/PACKAGES'
Warning in install.packages :
  package ‘BiocManager’ is not available (for R version 4.0.2)

搜索了一下报错,看到有人说把https改成http就可以了

试一下就成功了

install.packages("BiocManager",
                 repos = "http://mirrors.tuna.tsinghua.edu.cn/CRAN/")

相关文章

网友评论

      本文标题:linux系统安装R语言的BiocManager包遇到的报错

      本文链接:https://www.haomeiwen.com/subject/zymwlltx.html