ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

How to switch CRAN of R language to Tsinghua mirror in ubuntu

2026/8/18 11:37:10 拓冰建站 浏览量
How to switch CRAN of R language to Tsinghua mirror in ubuntu

How to switch CRAN of R language to Tsinghua mirror in ubuntu

创建文件

touch ~/.Rprofile 

添加内容

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

退出后,重新登录。

参考文献

  • CRAN | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror