Install R on Windows
Basic R Installation for Windows
The following steps may be used to install R on a Windows operating system. See these directions for installing R on a Macintosh operating system.
- Go to the RStudio Comprehensive R Archive Network (CRAN) mirror at https://cran.rstudio.com. [You can select a different mirror by going to http://www.r-project.org, selecting the “download R” link in the “Getting Started” box, and selecting a mirror location from the ensuing page.]
- Select the “Download R for Windows” link.
- Select the “base” option.
- Select the “Download R 3.2.2 for Windows” option (or similar if the version number has changed … the version is now at least 3.4.3). Either run the program or note where you saved this executable program on your computer.
- If you did not run the program, then locate the downloaded file on your computer (called “R-3.2.2-win.exe” or similar if the version number has changed) and run it.
- Select “English” language in the first dialog box (depending on your version of Windows you may have received security warnings before this dialog box appears).
- Press
Next
on the next two dialog boxes (first, a simple description; second, a user agreement). - Select a location to install R (simply use the default location if the location is not important to you – in the dialog box below I installed in a custom directory). Press
Next
. - At this point you can choose to install 32- or 64-bit or both versions of R. If you do not have a 64-bit computer, then you must install the 32-bit version. If you do have a 64-bit computer, then I suggest, initially and for simplicity, installing only one version or the other. I usually install the 32-bit version as it has some slight advantages when not working with extremely large data sets and with other software that I have installed on my machine (see this R FAQ){:target=”_blank”}. In this demonstration, I will install only the 32-bit version of R by deselecting the “64-bit Files” option. Press
Next
. - Select the “No (accept defaults)” (this is the default) option. Press
Next
. - Decide whether to create a shortcut in your Start Menu folder (I suggest NOT). Press
Next
. - Decide whether or not to create desktop or Quick Launch icons (top two choices) and whether to register the version number and associate .RData files with R (bottom two choices). Generally, you will want to register the version number and associate the .RData files with R. If you plan to use RStudio, then you will not run R directly and I suggest then that you do not create Desktop or Quick Launch icons. Press
Next
. - R should then begin installing files into the directory you chose previously. If everything goes well, then you should get one last dialog box noting such. Press
Finish
.
If you plan to use RStudio, then you can now install it with t0hese directions.