【R语言基础】如何更新R版本

发布于:2024-06-01 ⋅ 阅读:(79) ⋅ 点赞:(0)

概要

提示:由于软件包的更新,所以需要更新R至新版本

流程细节

  • 查看当前R版本
R.version
  • 下载更新包:installr
 install.packages("installr")
 library(installr)
  • 跟着向导一步步执行安装

具体步骤

install.packages("installr")
library(installr)
> R.version               _                                
platform       x86_64-w64-mingw32               
arch           x86_64                           
os             mingw32                          
crt            ucrt                             
system         x86_64, mingw32                  
status                                          
major          4                                
minor          3.2                              
year           2023                             
month          10                               
day            31                               
svn rev        85441                            
language       R                                
version.string R version 4.3.2 (2023-10-31 ucrt)
nickname       Eye Holes                        > updateR()Installing the newest version of R,
 please wait for the installer file to be download and executed.
 Be sure to click 'next' as needed...试开URL’https://cran.rstudio.com/bin/windows/base/R-4.4.0-win.exe'Content type 'application/x-msdownload' length 85720856 bytes (81.7 MB)downloaded 81.7 MB

The file was downloaded successfully into:
 C:\Users\Lenovo\AppData\Local\Temp\RtmpsBs6Ti/R-4.4.0-win.exe 

Running the installer now...

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

提示:安装完成,更新至4.4.0

> R.version
              _                                
platform       x86_64-w64-mingw32               
arch           x86_64                           
os             mingw32                          
crt            ucrt                             
system         x86_64, mingw32                  
status                                          
major          4                                
minor          4.0                              
year           2024                             
month          04                               
day            24                               
svn rev        86474                            
language       R                                
version.string R version 4.4.0 (2024-04-24 ucrt)
nickname       Puppy Cup    

在这里插入图片描述


网站公告

今日签到

点亮在社区的每一天
去签到