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.

  1. 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.]
  2. Select the “Download R for Windows” link.
  3. Select the “base” option.
  4. 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.
  5. 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.
  6. 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).
  7. Press Next on the next two dialog boxes (first, a simple description; second, a user agreement).
  8. 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.
  9. 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.
  10. Select the “No (accept defaults)” (this is the default) option. Press Next.
  11. Decide whether to create a shortcut in your Start Menu folder (I suggest NOT). Press Next.
  12. 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.
  13. 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.