Overview

Before class

We will be using R Workbench for the lecture and the in-class exercises. If you are using R from your laptop (VS. R Workbench), make sure your system is correctly configured, see the Git page under Setup.

Class materials

Today’s lecture builds upon the following two resources by The Carpentries:

We learned the following commands

Terminal/command line commands: * pwd to check your current directory * cd to navigate to your desired directory and move around terminal * ls to list all visible content in your current directory * ls -a to list all visible and hidden contents in your current directory * touch to create a new file; provide the filename and the extension * :q to exit and end the execution of a process

Git commands: * git init to initialize a new repo * git status to check the current status of your repo * git add . to add to the git staging area all new or changed files * git commit -m "your commit message" to commit the staged files * git push to push your committed files the online Github repo * git diff to show differences in files * git log to show all history of your commits * git reset --hard HEAD~1 to delete a pushed commit (use with caution), followed by git push -f origin main to push the deleted commit to the online Github repo

After Class