RStudio is an interactive desktop environment, but it is not R, nor does it include R when you download and install it. Therefore, to use RStudio, we first need to install R.

  1. You can download R from the Comprehensive R Archive Network (CRAN)[47]. Search for CRAN on your browser:

  2. Once on the CRAN page, select the version for your operating system: Linux, Mac OS X, or Windows.

    Here we show screenshots for Windows, but the process is similar for the other platforms. When they differ, we will also show screenshots for Mac OS X.

  3. Once at the CRAN download page, you will have several choices. You want to install the base subdirectory. This installs the basic packages you need to get started. We will later learn how to install other needed packages from within R, rather than from this webpage.

  4. Click on the link for the latest version to start the download.

  5. If you are using Chrome, at the bottom of your browser you should see a tab that shows you the progress of the download. Once the installer file downloads, you can click on that tab to start the installation process. Other browsers may be different, so you will have to find where they store downloaded files and click on them to get the process started.

    If using Safari on a Mac, you can access the download through the download button.

  6. You can now click through different choices to finish the installation. We recommend you select all the default choices.

    Select the default even when you get an ominous warning.

    When selecting the language, consider that it will be easier to follow this book if you select English.

    Continue to select all the defaults:

    On the Mac it looks different, but you are also accepting the defaults:

Congratulations! You have installed R.