如何更新R以及RStudio

#如何更新R以及RStudio
##part1 更新R
###section1 win 用包更新R

	install.packages("installr")
	require(installr)
	updateR()

###section2 macOS 用包更新R

install.packages('devtools') #assuming it is not already installed
library(devtools)
install_github('andreacirilloac/updateR')
library(updateR)
updateR(admin_password = 'Admin user password')

###section3 官网下载1

  1. go to http://www.r-project.org,
  2. click on ‘CRAN’2,
  3. then choose the CRAN site you prefer, for example: https://mirror.lzu.edu.cn/CRAN/.
  4. click on ‘Download R for XXX’ [where XXX is your operating system]
  5. follow the installation procedures
  6. restart RStudio
  7. rejoice

installr函数下载包的速度很慢,我推测可能是因为选择镜像的问题,所以推荐去官网下载

#part2 更新Rstudio

  1. open RStudio
  2. click on “help” and “Check for Updates”
  3. if there are any updates, you will jump to https://www.rstudio.com/products/rstudio/download/#download
  4. then choose the version you like and click on “download”
  5. click on “RStudio ???-XXX”[where ??? is the version and XXX is your operating system]
  6. it may too slow to download complete, so you should use XUNLEI to download
  7. follow the installation procedures
  8. restart RStudio
  9. rejoice

  1. https://stackoverflow.com/questions/13656699/update-r-using-rstudio/38619239#38619239 ↩︎

  2. The Comprehensive R Archive Network ↩︎

  • 24
    点赞
  • 135
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值