更换方法

R Studio基本上是学习R语言的首选IDE,但是其更换镜像的方法有点诡异,在​​Tool​​​->​​Global option...​​​->​​Packages​​​->​​change​​更换好了之后还是使用的默认镜像下载,速度超级慢。。

后来发现有个不错的方法,就是在控制台输入命令

options(repos = structure(c(CRAN = "https://mirrors.tuna.tsinghua.edu.cn/CRAN/")))

这样的话镜像就切换过来了。