A Installing R

Installing R and RStudio is usually straightforward. The sections below explain how and there is a helpful YouTube video here.

A.1 Installing Base R

Install base R from https://cran.rstudio.com/. Choose the download link for your operating system (Linux, Mac OS X, or Windows).

If you have a Mac, install the latest release from the newest R-x.x.x.pkg link (or a legacy version if you have an older operating system). After you install R, you should also install XQuartz to be able to use some visualisation packages.

If you are installing the Windows version, choose the “base” subdirectory and click on the download link at the top of the page. After you install R, you should also install RTools; use the “recommended” version highlighted near the top of the list.

If you are using Linux, choose your specific operating system and follow the installation instructions.

A.2 Installing RStudio

Go to rstudio.com and download the RStudio Desktop (Open Source License) version for your operating system under the list titled Installers for Supported Platforms.

A.3 Installing LaTeX

You can install the LaTeX typesetting system to produce PDF reports from RStudio. Without this additional installation, you will be able to produce reports in HTML but not PDF. To generate PDF reports, you will additionally need:

  1. pandoc, and
  2. LaTeX, a typesetting language, available for

A.4 RStudio Online

You may need to access R and RStudio online if you use a tablet or chromebook that can’t install R.

Students in the Institute of Neuroscience and Psychology at the University of Glasgow can access Glasgow Psychology RStudio with their GUID and password.

RStudio Cloud is a free online service that allows access to R and RStudio.