Ondřej Mottl
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.
Is Git already installed?
Check your version:
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.
GUI = Graphical User Interface
You will still need to know the basics of shell.
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!
Make sure you have the latest version of R installed. You can check the version by running:
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:
We now need to make sure that RStudio can communicate with Git.
Confirm that git has your name and email by running:
If needed, set the name and email by running:
We now need to make sure that RStudio can communicate with Git.
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:
Other useful functions:
If everything fails, you can try to set up the PAT manually into your .Reviron
file.
Simply run:
Add a line like this, but substitute your PAT:
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.
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