R版本快速更新

2020-05-12  本文已影响0人  JeremyL

使用updateR()函数: 为用户检测最新版本的r, 如果当前安装的不是最新版本,即可下载安装。

updateR()用法

updateR(fast = FALSE, browse_news, install_R, copy_packages,
  copy_Rprofile.site, keep_old_packages, update_packages, start_new_R,
  quit_R, print_R_versions = TRUE, GUI = TRUE,
  to_checkMD5sums = FALSE, keep_install_file = FALSE,
  download_dir = tempdir(), silent = FALSE, setInternet2 = TRUE,
  cran_mirror = "https://cran.rstudio.com/", ...)

updateR()会执行以下的功能:

windows系统

#R版本查看
version 
#已安装的R包查看
packageStatus() 
#安装installr包
install.packages("installr")
require(installr)
#更新
updateR()
#R版本查看
version 

mac系统

install.packages("devtools")
library("devtools")
devtools::install_github("AndreaCirilloAC/updateR")
library(updateR)
updateR(admin_password = '用户系统密码')

参考:
Update R using RStudio
updateR()
updateR

上一篇 下一篇

猜你喜欢

热点阅读