Welcome to the first lesson of your course on using R for systematic reviews and meta-analysis. We're starting at the very beginning by setting up your digital workspace. The goal of this lesson is to successfully install the two key pieces of software we'll be using throughout this course: R and RStudio. Getting this foundational step right will ensure a smooth learning experience as we move into analyzing data.
The Tools of the Trade: R and RStudio
Before we begin the installation, it's crucial to understand the relationship between R and RStudio. Though they work together, they are two separate programs.
- R is the programming language itself. Think of it as the engine of a car. It has all the power and does all the computational work, but it's not very user-friendly on its own.
- RStudio is an Integrated Development Environment (IDE). Think of it as the car's dashboard, steering wheel, and pedals. It provides a user-friendly interface that makes it much easier to write R code, manage files, view plots, and get help.
We will always work within the RStudio application, which automatically uses the R engine running in the background. Therefore, the installation process is always a two-step procedure, as shown in the image below: first install R, then install RStudio.

Installation Guide
The installation process is straightforward and depends on your computer's operating system (Windows or macOS). In the following sections, you will find guided instructions for both. I recommend watching the short video for your operating system first to get a visual overview, then following the step-by-step text instructions to perform the installation.
It's best to accept the default settings during installation unless you have a specific reason to change them.
Option 1: For Windows Users
If you are using a Windows computer, follow these steps.
First, watch this video for a demonstration of the entire process.
Installing R & RStudio | Foundations of data analysis with R (lesson 1)
This video from The GRAPH Courses provides a clear, screen-capture walkthrough of installing both R and RStudio on a Windows machine.
Watch the section on Windows installation. Pay attention to the websites visited and the sequence of downloads and installations.
Now, use the following guide to perform the installation on your own computer.
This guide provides a simple, numbered checklist for installing both programs on Windows.
Follow the seven steps under the heading "Windows (PC) Instructions" to install R. Then, proceed with the six steps directly below it for installing RStudio.
Option 2: For macOS Users
If you are using a Mac, the process is very similar.
Start by watching this video demonstration for macOS.
Installing R & RStudio | Foundations of data analysis with R (lesson 1)
This video from The GRAPH Courses shows the specific steps for installing R and RStudio on macOS, including a note for newer Apple computers (M1/M2/M3 chips).
Watch the section dedicated to macOS installation. The video explains which file to download depending on your Mac model. As a general rule, if your Mac was purchased in 2021 or later, you likely have an Apple silicon chip (M1, etc.).
Now, use this step-by-step guide to complete the installation.
This guide provides a clear checklist for the macOS installation.
Follow the seven steps under the "Mac Instructions" heading to install R. Afterward, follow the seven steps listed for RStudio on a Mac. Note that installing on a Mac often involves dragging the application icon into your Applications folder.
Verifying Your Installation
Once you have installed both R and RStudio, you can verify that everything is working correctly.
- Find and open the RStudio application on your computer (you can ignore the R application itself).
- You should see an interface with several panes, similar to the screenshot below. Don't worry about what everything means just yet; we will cover that in our next lesson.
- In the pane labeled "Console," you will see a
>symbol with a flashing cursor. This is where you can type commands directly. - Type
1 + 1and press Enter.
R should respond with:
[1] 2
If you see this output, your installation was successful!

Conclusion
Congratulations on completing the first and most crucial setup step! You have now installed your complete environment for data analysis in R.
In this lesson, you have learned:
- The difference between R (the language/engine) and RStudio (the user interface/dashboard).
- The correct installation order: R first, then RStudio.
- How to install both programs on your computer and verify that they are working.
With your software ready, you are now prepared to start interacting with R. In our next lesson, we will take a guided tour of the RStudio interface, learning the purpose of each pane and how to write and execute your first commands in a more structured way.