package ‘RPMM’ is not available (for R version 3.6.0)

当我们用启动R安装一些R包的时候
提示:

Warning: unable to access index for repository https://mirrors.eliteu.cn/CRAN/src/contrib:
  cannot open URL 'https://mirrors.eliteu.cn/CRAN/src/contrib/PACKAGES'
Warning message:
package ‘RPMM’ is not available (for R version 3.6.0)


执行以下命令

setRepositories(addURLs = c(CRANxtras = "http://cran.at.r-project.org/"))

再执行 install.packages("package_name")
还有一种是直接显示不提示无法访问网站
输入以下内容

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("BiocInstaller")

最后更新会发现很多版本不一致的包,可以一个个更新,但是遇到BiocInstaller显示

package ‘BiocInstaller’ is not available (for R version 3.6.0)

这是因为R3.5以上的需要使用BiocInstalle3.7版本以上的
执行以下命令即可

install.packages("BiocInstaller", repos = "http://bioconductor.org/packages/3.7/bioc")

通过installed.packages()查看版本一致了

原文地址:https://www.cnblogs.com/lph970417/p/11655371.html