剛剛學習R語言,由於安裝的R語言版本比教程的低一版,因此想着更新一下R語言版本。在使用R包的時候,經常會提示另一個版本的警告。不過,這個R的更新還真的太快了,感覺有些招架不住。
參考:
https://blog.csdn.net/dnhb_lw/article/details/78701478
更新R
win系統下的更新:
install.packages("installr")
require(installr)
updateR()
IOS用包更新R
install.packages('devtools') #assuming it is not already installed
library(devtools)
install_github('andreacirilloac/updateR')
library(updateR)
updateR(admin_password = 'Admin user password')
官網下載
- go to http://www.r-project.org,
- click on ‘CRAN’2,
- then choose the CRAN site that you like. I like lzu: https://mirror.lzu.edu.cn/CRAN/.
- click on ‘Download R for XXX’ [where XXX is your operating system]
- follow the installation procedure for your operating system
- restart RStudio
-
rejoice
自己不知道選那個,最選擇了基礎安裝包,全部安裝了。
打開Rstudio默認已經使用最新的安裝的R版本,也可以會後自己手動調整。
更新Rstudio
- open RStudio
- click on “help” and “Check for Updates”
- if there are any updates, you will jump to https://www.rstudio.com/products/rstudio/download/#download
- then choose the version you like and click on “download”
- click on “RStudio ???-XXX”[where ??? is the version and XXX is your operating system]
- it may too slow to download complete, so you should use XUNLEI to download
- follow the installation procedure for your operating system
- restart RStudio
- rejoice