Skip to main content

11  Setting up Git

Since Git has already been covered in the previous workshops, we won’t cover learning it during this workshop. However, since version control is a fundamental component of any modern data analysis workflow and should be used, we will be using it throughout the workshop.

11.1 For those who have not used Git before

Type in the RStudio Console and follow the instructions:

Console
# There will be a pop-up to type in your name (first and
# last), as well as your email
r3::setup_git_config()

Please read through the Version Control lesson of the introduction workshop. You do not need to do any of the coding tasks or exercises. You will get plenty of practice and exposure to Git during the workshop, as well as any help along the way for any issues you may have.

11.2 For everyone

Run this check to make sure you have everything ready for the workshop:

Console
r3::check_setup()

The output you’ll get for success will look something like this:

Checking R version:
✔ Your R is at the latest version of 4.5.2
Checking RStudio version:
✔ Your RStudio is at the latest version of v2026.01.2+418
Checking Git config settings:
✔ Your Git configuration is all setup!
  Git now knows that:
  - Your name is 'Luke W. Johnston'
  - Your email is 'lwjohnst@gmail.com'

Eventually you will need to copy and paste the output into one of the survey questions.