RStudio改变install.packages的镜像包

使用RStudio导入包时速度慢,可通过更改导入包的镜像服务器解决。操作路径为依次点击“Tools”“Packages”“CRAN mirror”,然后选择一个国内镜像,选离自己近的服务器速度会更快。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在使用Rstidio的时候发现导入包,导入的好慢呀,所以想到了改变导入包的镜像服务器

“Tools”

在这里插入图片描述

“Packages”

在这里插入图片描述

“CRAN mirror”

这里随便选一个China的镜像,选离你近的服务器,当然,随便选一个国内的也没关系,慢一点罢了

在这里插入图片描述

R版本没问题,是最新的,但是仍然报错如下:> warnings() Warning messages: 1: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘proxy’ had non-zero exit status 2: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘checkmate’ had non-zero exit status 3: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘KernSmooth’ had non-zero exit status 4: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘wk’ had non-zero exit status 5: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘farver’ had non-zero exit status 6: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘lattice’ had non-zero exit status 7: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘cluster’ had non-zero exit status 8: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘nnet’ had non-zero exit status 9: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘foreign’ had non-zero exit status 10: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘data.table’ had non-zero exit status 11: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘colorspace’ had non-zero exit status 12: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘mvtnorm’ had non-zero exit status 13: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘SparseM’ had non-zero exit status 14: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘units’ had non-zero exit status 15: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘isoband’ had non-zero exit status 16: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘MASS’ had non-zero exit status 17: In install.packages("ggplot2", dependencies = TRUE) :
03-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值