The Comprehensive R Archive NetworkDownload and Install RPrecompiled binary distributions of the base system and contributed packages, Windows and Mac users most likely want one ofthese versionsofR:.Download R for Linux点击DownloadRforWindows.Download Rfor (Mac) OS X.DownloadRforWndowsR is part ofmany Linux distributions, you should check with yourLinux package management system in addition to the link aboveSource Code for all PlatformsWindows and Mac users most likely want to download the precompiled binaries listed in the upper box, not the source code. The sources haveto be compiled before you can use them. If you do not know what this means, you probably do not want to do it!. The latest release (2018-04-23, Joy in Playing) R-3.5.0.tar.gz, read what's new in the latest version..Sources of R alpha and beta releases (daily snapshots, created only in time periods before a planned release).Daily snapshots of current patched and development versions are available here. Please read about new features and bug fixes beforefiling corresponding feature requests or bug reports.. Source code of older versions of R is available here.. Contributed extension packagesQuestions About RIfyouhavequestions aboutRlikehowtodownload and installthesofware,orwhatthelicensetermsarepleasereadouranswerstofrequently asked questions before you send an email.图1.5R软件下载界面(4)4.点击installRforthefisttime,如图1.6所示。R for windowsx 点击"install Rfor the fist time"Subdirectories:BinariesforbaseditibutionThiswhatyouwanistallRfortefittmebaseBinaries of contributed CRAN packages (for R >=2.13.x: managed by Uwe Ligges).There is also information on third partycontribgofware available for CRAN Windows services and corresponding environment and make variablesold contribBinaries of contributed CRAN packages for outdated versions ofR (for R2.13.x; managed by Uwe Ligges).RroolsTools to build R and R packages. This is what you want to build your own packages on Windows, or to build R itself.PleasedonotsubmitbinriesoCRANPackagedeelopersmighwanocontactUeLigesdiretlyncaseofquesion/uggestionreladoWinowsbinrieYou may also want to read the R FAQ and R for Windows FAQ.Note: CRAN does some checks on these binaries for viruses, but cannot give guarantees, Use the normal precautions with downloaded executables图1.6R软件下载界面(5)5.点击DownloadR3.5.0forWindows,即可下载所需的R软件,如图1.7所示。4
4 图 1.5 R 软件下载界面(4) 4.点击 install R for the fist time,如图 1.6 所示。 图 1.6 R 软件下载界面(5) 5.点击 Download R 3.5.0 for Windows,即可下载所需的 R 软件,如图 1.7 所示
R-3.5.0forwindows(32/64bit)Download R3.5.0 for Windows (62 megabytes, 32/64 bin)Instalation and other instnuctions点击"Download R3.5.0forWindowsMewfeatures.in.this.versionIf vou want to double-clbeck that the pacouhavedownloadedmatchesthepackagedistributedbyCRAN,youn comparethemd5sum oftheexetothefingerprintoomasterserver.Youwill needaversion ofmdSsum forwindows:bothgraphical andommand lineversionsareavailablFrequently asked questionsDoes Rnin under my version of Windows?s in my previous version ofR?How do Lupdate packasShouldIrun32-bitor64-bitRPlease see the RFAQ for gd the R Windows FAQ for WindoOther buiids Patches to this release are incorporated in the e-patched snapshot build.A build of the development version (which will eventually become tbe next major release ofR) is available in the r-devel snapsbot build.Previous releasesNotesters: A stable link which willredirect to the current Windows binary release isCRANMIRRORbin/windows/base/release.htm图1.7R软件下载界面(6)二、R的安装步骤1.以R-3.5.0-win.exe为讲解R安装的过程。下载得到R-3.5.0-win.exe以后,双击它,启动安装程序,如图1.8所示。管理文件主页共亭查美剪切新建项目田全部选择面X口打开、-广V个轻松访间,品全部取消复制路径窗编纸国定到复制粘贴移动到复制到副除重命名新建属性自粘贴快捷方式反向选择历史记录快速访同文件夹贴板组织新建打开选择个重此电脑新加卷(F)RtongjiRmulu点击图标,启动R安装程序名称日期类型标记大小★快速访问R-3.5.0-win2018/6/26-11:15应用程序81,399KB桌面tu6JPG文件121KB2018/6/26.11:11下载★tu5JPG文件92KB2018/6/26.11:08文档*回tu42018/6/2611:01JPG文件144KB图片★tu3JPG文件120KB2018/6/26:10:54aRmulu tu2.22018/6/26 10:46JPG文件134 KBR语言书tu1.1.1JPG文件100 KB2018/6/26 10:36 tu1.12018/6/2610:26JPG文件173KBtu2JPG文件135KB2018/6/2610:13tul2018/6/2610:07JPG文性125KB图1.8R软件安装界面(1)2.选择需要的语言,这里使用“中文(简体)”,点击“确定”,如图1.9所示。5
5 图 1.7 R 软件下载界面(6) 二、R 的安装步骤 1.以 R-3.5.0-win.exe 为讲解 R 安装的过程。下载得到 R-3.5.0-win.exe 以后, 双击它,启动安装程序,如图 1.8 所示。 图 1.8 R 软件安装界面(1) 2.选择需要的语言,这里使用“中文(简体)”,点击“确定”,如图 1.9 所示
X选择语言选择安装时使用语言:口G中文(简体)2确定取消图1.9R软件安装界面(2)3.点击下一步,如图1.10所示。安装向导-RforWindows3.5.0口X信息R请阅读以下重要信息再进入下一步。准备好维续安装后,点击“下一步”。GNU GENERAL PUBLIC LICENSEAVersion 2, Jume 1991Copyright (C)1989,1991Free SoftwareFoundation,Inc.51 Franklin St, Fifth Floor, Boston, MA02110-1301USAEveryone is permitted to copy and distribute verbatim copiesof this license docunent, but changing it is not allowed.PreambleVThe licenses for most softvare aredesienedto take avavvour下一步()))取消图1.10R软件安装界面(3)4.按照对话框提示,选择R软件安装目录。如需更改安装目录,可点击浏览进行调整,如图1.11所示。6
6 图 1.9 R 软件安装界面(2) 3.点击下一步,如图 1.10 所示。 图 1.10 R 软件安装界面(3) 4.按照对话框提示,选择 R 软件安装目录。如需更改安装目录,可点击浏览, 进行调整,如图 1.11 所示
安装向导-RforWindows3.5.0X口选择安装位置R将Rforwindows3.5.0安装到何处?安装向导将把R for windows3.5.0安装到以下文件夹中。点击“下一步”维续。如果您要选择不同的文件夹,请点击“测览”。F:VR\R-3.5.0浏览(R)必须至少有1.2兆字节(IB)的闲置磁盘空间。上一步(B)下一步()))取消图1.11R软件安装界面(4)5.选择需要安装的R组件,其中Corefiles和Messagetranslations为默认选项根据操作系统选择32位或64位文件之一即可,如图1.12所示。安装向导-RforWindows3.5.0X口选择组件R要安装哪些组件?请选择要安装的组件,清除不要安装的组件。准备好后点击“下一步”。用户安装84.6兆字节(MB)Core Files49.5兆字节(MB)32-bit Files64-bitFiles51.3兆字节(MB)Message translations7.3兆字节(MB)目前所选组件要求至少193.5兆字节(IB)磁盘空间。<上一步(B)下一步(N)》取消图1.12R软件安装界面(5)6.指定安装程序,可自行设定或默认安装,本例选择默认安装,如图1.13所示。7
7 图 1.11 R 软件安装界面(4) 5.选择需要安装的 R 组件,其中 Core files 和 Message translations 为默认选项, 根据操作系统选择 32 位或 64 位文件之一即可,如图 1.12 所示。 图 1.12 R 软件安装界面(5) 6.指定安装程序,可自行设定或默认安装,本例选择默认安装,如图 1.13 所示
安装向导-RforWindows3.5.0XL启动选项R你想自定义启动选项吗?请选yes或no,然后再点击NextOYes(自定义启动)ONo(接受默认选项)<上一步(B)下一步(N))取消图1.133R软件安装界面(6)7.选择是否在桌面创建快捷方式,如图1.14所示,并点击下一步出现正在安装界面,如图1.15所示。安装向导-RforWindows3.5.0口X选择附加任务R要执行哪些附加任务?请选择安装RforWindows3.5.0时需要执行的附加任务,然后点击“下一步”。附加快捷方式:口创建桌面快捷方式(D))■创建快速启动栏快捷方式(Q)登記册记录项版本信息保存于注册表内。把R程序同.RData文件联合起来【上一步(B)下一步()取消图1.14R软件安装界面(7)8
8 图 1.13 R 软件安装界面(6) 7.选择是否在桌面创建快捷方式,如图 1.14 所示,并点击下一步出现正在安 装界面,如图 1.15 所示。 图 1.14 R 软件安装界面(7)