6  Cloning a GitHub repository into your local computer using RStudio

This tutorial is a summary of the the instructions described here.

6.1 Get the GitHub repository URL

1. Go to the repository’s GitHub page

Click on the green button that is labeled code.

2. Copy the repository URL

Click on the copy to clipboard icon to copy the repository URL.

6.2 Go to RStudio and create new project

6.3 Choose Version Control

6.4 Select Git

6.5 Setup repository settings

1. Paste the repository URL you copied earlier

2. Set the project directory name

The project directory name should be specified already after you paste the repository URL. Use the suggested directory name.

3. Set local directory

Browse for the directory on your local computer where you want to save the files for the specified project.

4. Create project

Click on the Create Project button/icon.

You will now have the GitHub repository in your local computer.