
Ondřej Mottl
< — use arrow keys to navigate —>
Getting all the necessary software installed, configured, and playing nicely together is honestly half the battle … Brace yourself for some pain


You will need a GitHub account.
It is super easy to create one, just go to GitHub.com and follow the instructions.
You will need to use the shell (command line) to interact with Git.
The actuall tool might differ based on your operating system.
Please refer to this document for more information.
As most users will be on Windows, we will focus on Command Prompt here. You can can open it by typing cmd in the Windows search bar.
Is Git already installed?
Open Command Prompt and check your version:
You can click on the tabs below to see installation instructions for your operating system.
Download and install Git for Windows
Download and install Git for MacOS
Introduce yourself to Git 👋
❗Note to substitute your name and the email address❗
Use the same email address as the one you used for GitHub account.
There are many options, some of the most popular are:
The next sections of the presentation will expain setup of each of these GUI clients. You only need to choose one!
If you do not use either of them, I recomend using GitHub Desktop
Dowload and install GitHub Desktop.
There is an option to install for all Operating Systems (Windows, Linux, MacOS).
Link your GitHub account to GitHub Desktop.
Make sure you have the latest version of R installed. You can check the version by running the following code in R Console:
Install the newest version of R from CRAN.

Check out {updateR} package to update R and all installed packages.
Make sure you have the latest version of RStudio installed. You can check the version by running:
You can download the newest version of RStudio from RStudio website.
The {usethis} package is a collection of functions that help automate package and project setup tasks.
Install the package by running:

R-studio is using Projects, which are a way to organize your work in RStudio.
You can create a new project by going to File -> New Project... and following the instructions.
We now need to make sure that RStudio can communicate with Git.
You need to activate Git for your RStudio Project by running:
If needed, set the name and email by running (replace with your name and email):
We now need to make sure that RStudio can communicate with GitHub.
You can check more details about it here and here.
Click Generate token and copy the token to a safe place.
Add the PAT to RStudio by running:
You will be prompted to enter the PAT you generated in the previous step (“Replace these credentials” option).
Other useful functions to check if everything is set up correctly:
Download and install Visual Studio Code.
There is an option to install for all Operating Systems (Windows, Linux, MacOS).
Install the GitHub Pull Requests and Issues extension.
Link your GitHub account to Visual Studio Code.


Ondřej Mottl Assistant Professor at Charles University