1. R (Rstudio) 的更新与安装
- R 的安装请参考官网。
- R的更新:
Windows:
install.packages(“installr”)
require(installr)
updateR()
Mac:
#安装devtools包(如果已经安装 跳过此步,进入到下一步)
install.packages('devtools')
library('devtools')
#安装updateR
install_github('andreacirilloac/updateR')
library(updateR)
#更新
updateR(admin_password = 'User password')
这里还有个知乎帖子介绍在mac上用homebrew的方法:https://www.zhihu.com/question/420467033
- Rstudio 更新:
在RStudio设置所用的R的路径(Rstudio 找不到安装的R):在RStudio的“Tools”菜单下选择“Global Options”,然后在“General”选项卡中指定R语言的安装路径。