R语言的安装、更新、卸载及运行指南
1. 安装与更新R
1.1 更新R安装
与Stata每7天自动检查更新不同,在R中,你需要使用 update.packages
函数来检查更新:
update.packages()
运行该函数后,R会询问你是否要更新每个包。若输入 “y”,它会执行更新并显示相关信息,例如:
graph :
Version 1.15.6 installed in C:/PROGRA~1/R/R-26~1.1/library
Version 1.16.1 available at
http://rh-mirror.linux.iastate.edu/CRAN
Update (y/N/c)?
y
trying URL ’http://rh-mirror.linux.iastate.edu/CRAN/bin/windows/contrib/2.6/graph_1.16.1.zip’
Content type ’application/zip’ length 870777 bytes (850 Kb)
opened URL
downloaded 850 Kb
package ’graph’ successfully unpacked and MD5 sums checked
The downloaded packages are in
C:/Documents and Settings/muenchen/Local Settings/Temp/Rtmpgf4C4