# Getting Started

The content of this module is [from this Coursera course ](https://www.coursera.org/learn/r-programming/home/week/1)offered by Johns Hopkins University.&#x20;

## Enrolling in the Course

#### 1. Navigate to the course home page

#### 2. Click on the Enroll button

#### 3.  Choose the "Data Science: Foundations using R Specialization" option.

![](https://1882563148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlKxTXoz96Rm16DGq3w%2Fuploads%2FOMmdnyr9y2dFPSLBgXzY%2FScreen%20Shot%202021-10-11%20at%2016.51.09.png?alt=media\&token=4d5c3f35-9fa2-4928-bd9d-1fcb6f68c599)

#### 4. Click "Next"

#### 5. If you plan to study R beyond the scope of this guide, then feel free to proceed with the free trial initialization process and enter your financial credentials. If not, choose the "Audit course" option.

![](https://1882563148-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlKxTXoz96Rm16DGq3w%2Fuploads%2FliGi4RYW9mvdlBvzT6aQ%2FScreen%20Shot%202021-10-11%20at%2016.53.05.png?alt=media\&token=c31c3e39-f9bf-438a-b475-dd33fce54cef)

## Install R and R Studio

Using the course resources, download and install R and R Studio on your machine. You can follow the below links for convenience.

For Mac users

* [Install R on a Mac](https://www.coursera.org/learn/r-programming/lecture/9Aepc/installing-r-on-a-mac)
* [Installing R Studio on Mac](https://www.coursera.org/learn/r-programming/lecture/qYDfT/installing-r-studio-mac)

For Windows users:

* [Installing R on Windows](https://www.coursera.org/learn/r-programming/lecture/3CIUX/installing-r-on-windows)
* [Installing R Studio on Windows](https://medium.com/@GalarnykMichael/install-r-and-rstudio-on-windows-5f503f708027)

## Set Up swirl

The swirl teaches you R programming and data science interactively, at your own pace, and right in the R console. We use swirl for practice problems.

To install it, follow the below steps.

#### 1. Open RStudio and type the following into the console.

```
> install.packages("swirl")
```

#### 2. This is the only step that you will repeat every time you want to run swirl. First, you will load the package using the `library()` function. Then you will call the function that starts swirl. Type the following, pressing Enter after each line:

```
> library("swirl")
> swirl()
```

You can read more about swirl [here](https://swirlstats.com/).

## Congratulations!

If you made it here, then congratulations! You have successfully completed this section. Move to the next portion of the guide with the arrow buttons below.
