然后就会提示最新的R版本,和是否需要拷贝老版本的R程序包目录,是否需要移除老的程序包目录以及是否更新新的版本中的程序包。一切搞定之后会提醒你是否需要打开新的RGui,程序会默认将系统的默认R设置为最新版,因此RStudio也会自动切换到最新的R版本。下面是升级之后RStudio的启动提示
R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
可以查看一下现在程序包里的库都是对应哪个版本的R编译的(图片见文章开头):
pkgs<-installed.packages()
plot(as.factor(pkgs[,'Built']),col=2:4,main='Packages built version',ylab='Count of packages')