MacOS: R 升级

百度了一下自动升级R程序的大多都是win环境下,在win环境下可以利用 'installr' 这个包来升级R版本,但是Mac下并不存在这样的方式,于是有人就开发了Mac下类似功能的包 updateR。使用该包可以很方便的自动更新R,而且不用担心以前安装的包发生丢失等。
原文来自:
https://andreacirilloblog.wordpress.com/2015/10/22/updater-package-update-r-version-with-a-function-on-mac-osx/

升级前版本为3.4.1

R.png
#安装devtools包(如果已经安装 跳过此步,进入到下一步)
install.packages('devtools')
library('devtools')
 
#安装updateR
install_github('andreacirilloac/updateR')
library(updateR)
 
#更新
updateR(admin_password = 'User password')

升级后到了最新的3.4.1

MacOS: R 升级_第1张图片
R.png

你可能感兴趣的:(MacOS: R 升级)