【R语言】R语言版本和Rstudio的更新

刚刚学习R语言,由于安装的R语言版本比教程的低一版,因此想着更新一下R语言版本。在使用R包的时候,经常会提示另一个版本的警告。不过,这个R的更新还真的太快了,感觉有些招架不住。

参考:
https://blog.csdn.net/dnhb_lw/article/details/78701478

更新R

win系统下的更新:

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

IOS用包更新R

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

官网下载

  1. go to http://www.r-project.org,
  2. click on ‘CRAN’2,
  3. then choose the CRAN site that you like. I like lzu: https://mirror.lzu.edu.cn/CRAN/.
  4. click on ‘Download R for XXX’ [where XXX is your operating system]
  5. follow the installation procedure for your operating system
  6. restart RStudio
  7. rejoice
    自己不知道选那个,最选择了基础安装包,全部安装了。
    打开Rstudio默认已经使用最新的安装的R版本,也可以会后自己手动调整。


    image.png

更新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 procedure for your operating system
  8. restart RStudio
  9. rejoice
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。