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:
- Go to cran.rstudio.com, download a precompiled binary distribution for your operating system, and install it.
- 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

When you open RStudio, you should see a window like what is shown above. The user interface shows four panes:
- Source Pane. This is the area where you can open and view your R script, data files, and so on.
- Console Pane. The console allows you to interactively enter R expressions and call functions to perform coding and reading output interactively.
- Environment Pane. This pane shows variables and their values that are currently loaded in the context.
- Other. All the other things go under this pane. You will see output of data visualization here. You can also see a list of installed libraries here.
Setting 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.