本文介绍: How to switch the CRAN mirror source to Tsinghua University in ubuntu

创建文件

touch ~/.Rprofile 

添加内容

tee ~/.Rprofile <<-'EOF'
options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
EOF

退出后,重新登录。

参考文献

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注