🪞 国内镜像源 / CRAN (R) · R 语言包仓库 options(repos = c(CRAN = "https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
r 永久配置(写进 ~/.Rprofile)
local({
r <- getOption("repos")
r["CRAN"] <- "https://mirrors.tuna.tsinghua.edu.cn/CRAN/"
options(repos = r)
})
install.packages("ggplot2")
options(repos = c(CRAN = "https://cloud.r-project.org/"))
options(repos = c(CRAN = "https://mirrors.ustc.edu.cn/CRAN/"))
r 永久配置(写进 ~/.Rprofile)
local({
r <- getOption("repos")
r["CRAN"] <- "https://mirrors.ustc.edu.cn/CRAN/"
options(repos = r)
})
install.packages("ggplot2")
options(repos = c(CRAN = "https://cloud.r-project.org/"))
options(repos = c(CRAN = "https://mirrors.bfsu.edu.cn/CRAN/"))
r 永久配置(写进 ~/.Rprofile)
local({
r <- getOption("repos")
r["CRAN"] <- "https://mirrors.bfsu.edu.cn/CRAN/"
options(repos = r)
})
install.packages("ggplot2")
options(repos = c(CRAN = "https://cloud.r-project.org/"))
options(repos = c(CRAN = "https://mirrors.nju.edu.cn/CRAN/"))
r 永久配置(写进 ~/.Rprofile)
local({
r <- getOption("repos")
r["CRAN"] <- "https://mirrors.nju.edu.cn/CRAN/"
options(repos = r)
})
install.packages("ggplot2")
options(repos = c(CRAN = "https://cloud.r-project.org/"))
已复制到剪贴板
当前在 App 内置浏览器中,文件可能无法下载保存。请点右上角菜单,选择「在浏览器中打开」。