Setup R on Windows

Setting up R on Windows.

Motivation

Instructions on this page should be followed in order to produce the desired effects, namely:

Install R

Download the installer file

In your web browser, navigate to https://cran.r-project.org/bin/windows/base/.

On the web page, click on the link ‘Download R-x.x.x for Windows’ (where x.x.x is the latest version of R available for Windows).

Download R for Windows.

This should download an excutable file to your computer.

Run the installer

Double-click on the installer file that you just downloaded and progress through the screens of the installation program.

We recommend leaving all options to their default values.

Test your installation

  • Double-click on the desktop icon R x.x.x.

The RGui application should open with an R Console.

The R GUI app.

You can close the application. If prompted, do not save the workspace image.

Install RStudio Desktop

Download the installer file

In your web browser, navigate to https://posit.co/download/rstudio-desktop/.

Scroll past “Step 1: Install R” (which was demonstrated above for Windows).

On the web page, click on the button ‘Download RStudio Desktop for Windows’.

Download RStudio Desktop.

This should download an excutable file to your computer.

Run the installer

Double-click on the installer file that you just downloaded and progress through the screens of the installation program.

We recommend leaving all options to their default values.

Test your installation

Once the installer has completed successfully:

  • Open the Windows Start Menu.
  • In the Windows Start Menu find and launch ‘RStudio’.

The RStudio application should open.

The RStudio Desktop app.