更新R,Rstudio版本及其R包

更新R在Rstudio中

install.packages("installr")
require(installr)
updateR()

更新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

自动下载相关依赖包

install.packages("ggplot2", dependencies = T)

当R版本升级后,全部更新

update.packages(checkBuilt=TRUE, ask=FALSE)

部分来自参考:https://blog.csdn.net/dnhb_lw/article/details/78701478

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容