Also check: Using JASP

Installing R and RStudio Desktop

In this course, we learn how to quantitatively analyze data that we collect from users. For this, we use R, a programming language that is often used in both industry and research for data analysis and visualization. To follow in-class exercises and work on your assignments, you will need to install R. Also, I strongly recommend you to install an Integrated Development Environment called RStudio.

To install R and RStudio:

  1. Go to cran.rstudio.com, download a precompiled binary distribution for your operating system, and install it.
  2. Once you have installed R, install RStudio Desktop. Go to https://www.rstudio.com/products/rstudio/download, download RStudio Desktop for your operating system, and install it.

If you find challenges in installing R and RStudio, follow the following video instructions.

https://youtu.be/rHZ9MGWxU5I

https://youtu.be/AEebOXiMyyI

Basics

RStudio User Interface

RStudio.png

When you open RStudio, you should see a window like what is shown above. The user interface shows four panes:

Setting the Working Directory

Select “Session | Set Working Directory | Choose Directory…” to set the working directory.

Select “Session | Set Working Directory | Choose Directory…” to set the working directory.

The first thing that you’d want to do is to set the working directory. From the menu bar, select “Session | Set Working Directory | Choose Directory…” to set the working directory.