Last updated 4 years ago
Was this helpful?
CRAN (The Comprehensive R Archive Network) 镜像源配置文件之一是.Rprofile (linux 下位于~/.Rprofile )。
.Rprofile
~/.Rprofile
在文末添加如下语句:
options("repos" = c(CRAN="https://mirrors.shuosc.cn/CRAN/"))
打开 R 即可使用该 CRAN镜像源安装 R 软件包。
CRAN
步骤一:进入全局选项设置
步骤二:选择China (Shanghai 2) [https] - Shanghai University
China (Shanghai 2) [https] - Shanghai University
步骤三:点击OK按钮,可以畅快地安装 R 软件包了。
OK