XDQ2021 想请教一下大家,为什么我的包安装不上,我是R version 3.5.2 。以下是报错内容 install.packages("ggpubr") Warning in install.packages : unable to access index for repository https://mran.microsoft.com/snapshot/2019-02-01/src/contrib: cannot open URL 'https://mran.microsoft.com/snapshot/2019-02-01/src/contrib/PACKAGES' Warning in install.packages : unable to access index for repository https://mran.microsoft.com/snapshot/2019-02-01/src/contrib: cannot open URL 'https://mran.microsoft.com/snapshot/2019-02-01/src/contrib/PACKAGES' Warning in install.packages : package ‘ggpubr’ is not available (for R version 3.5.2) Warning in install.packages : unable to access index for repository https://mran.microsoft.com/snapshot/2019-02-01/bin/windows/contrib/3.5: cannot open URL 'https://mran.microsoft.com/snapshot/2019-02-01/bin/windows/contrib/3.5/PACKAGES'
chuxinyuan XDQ2021 我猜你用的是微软Microsoft R Open v3.5.2,目前最新的应该是4.0.2。这个加强版的 R 默认使用微软镜像,服务器在国外,经常会出现连接不正常或者速度比较慢的情况。 建议你改下配置文件,设置成国内镜像即可。