R 软件、扩展包和源码。
在 R 会话中设置:
options(repos = c(CRAN = "https://mirrors.lzu.edu.cn/CRAN/"))
install.packages("ggplot2")第一行设置当前 R 会话的 CRAN 地址。为用户设置默认地址时,将该行写入 ~/.Rprofile。
安装 R 本身时,从镜像的 bin/linux/、bin/windows/ 或 bin/macosx/ 选择对应系统的目录。Linux 发行版的系统包配置按对应子目录提供的说明操作。