美文网首页
R版本快速更新

R版本快速更新

作者: JeremyL | 来源:发表于2020-05-12 17:59 被阅读0次

使用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()会执行以下的功能:

  • Check what is the latest R version. If the current installed R version is up-to-date, the function ends (and returns FALSE)
  • If a newer version of R is available, the user is asked if to review the NEWS of the latest R version - in order to decide if to install the newest R or not.
  • If the user wishes to - the function will download and install it. (you will need to press the "next" buttons on your own)
  • Once the installation is done, you should press "any-key", and the function will proceed with copying all of your packages from your old (well, current) R installation, into your newer R installation.
  • You can then erase all of the packages in your old R installation.
  • After your packages are moved (and the old ones possibly erased), you will get the option to update all of your packages in the new version of R.
  • You will be asked if to open the Rgui of your new R.
  • Lastly - you can close the current session of your old R.

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

相关文章

  • R版本快速更新

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

  • R版本更新升级

    1、第一种方法 install.packages("installr")library(installr)upda...

  • ReactNative 基本的版本管理

    ReactNative 版本更新较为频繁我们要随时做好版本的更新和控制; 查看当前版本: $cd (项目目录)$r...

  • R包安装、更新问题解决

    R版本较老,在分析时候遇到无法解决的报错就重新更新了R包 R软件更新 install.packages("inst...

  • 正确引用R及R包

    R版本不断更新,为保证数据可重复性,引用R时需标注出对应的R版本。那么如何引用呢? 打开R,键入citation(...

  • Rstudio一片空白怎么办?

    R软件差不多半年就能出款新的,有的包只能在更新的版本上使用,所以尝试了一下更新R。R不同版本相当于独立的软件,电脑...

  • 更新了

    版本号:1.2.0| 软件开关:开| 更新内容:云顶娱乐发现新版本提示更新|更新地址:https://t.cn/R...

  • R 和 Rstudio 在线更新

    R 在线更新 最近安装 R 包的时候老是会遇到有些包不适应老版本,无奈还是更新了新的版本。卸载重装就太麻烦了,而且...

  • 【r<-方案】在MacOS上更新R版本

    R现在到3.6版本了,我已经远远的out of date,下面可以简单地解决在MacOS上更新R版本。

  • Mac系统R版本更新

    最近想安装一些包,但是我的R版本(3.5.3)需要升级到3.6才能安装,所以打算更新一下。 在R官网上下载了Mac...

网友评论

      本文标题:R版本快速更新

      本文链接:https://www.haomeiwen.com/subject/urlinhtx.html