Installing R and RStudio - WindowsPC
Installing R and RStudio - WindowsPC
You need to install R prior to installing RStudio. (If you already have R installed, you
may skip and go to the "Installing RStudio" section of instructions.)
Installing R
1. Go to this site:
https://cran.rstudio.com/
Click on
1 download R for Installing R and RStudio
Windows
Click on
Download
Link
5. The dialog box shown in Figure 4 will open. Click "Save File" to continue (or "Open",
"Run" then skip to Step 6).
6. You may receive a Security Warning dialog box as shown in Figure 6. Click "Run" to
continue.
Click Run
Click OK to continue.
Click Next to
Continue.
Default
Destination
Folder
Click Next to
Continue.
Click Next to
Continue.
Click Next to
Continue.
Click Finish to
Continue.
Be sure that R has been installed prior to installing RStudio. (If this is not done
properly, you will need to review the Troubleshooting section at the end of this
document which explains how to remedy this.)
https://www.rstudio.com/products/rstudio/download/
Scroll to Installers for Supported Platforms section on Figure 17. Click on the first link if
you have Windows operating system (Windows Vista/7/8).
2. The dialog box on Figure 18Figure will open. Click "Save File" (or select "Open" and
"Yes" if you get a user access confirmation dialog box, then skip to Step 3).
Click Next to
Continue.
3. The Welcome screen of the setup Wizard on Figure 20 will appear. Click "Next" to
continue.
Click Next to
Continue.
Default Destination
Folder
Click Next to
Continue.
Figure 22: RStudio Setup Wizard Select Start Menu Folder Screen
6. Figure 23 shows the Installation progress bar.
Your work is typically done in RStudio since it is a much more user friendly development
environment than R (but you need R installed in order to run RStudio!)
1. Open your Start menu. Select "All Programs". Click on the "RStudio" folder.
Next, click the "RStudio" program shortcut inside the folder. See Figure 25.
Session Commands
R version History
Console-
Data and Variables in memory –
Frame where
the panel is empty since we just
you enter the
launched the program.
commands
Command
Prompt
Troubleshooting
An RStudio installation may fail if R is not installed. You may receive an Choose R
Installation dialogue box shown in Figure 27.