The workflow presented next is what you will always do when starting a new exercise (I’ll let you know when that happens). I’ll tell you
“Create a GitHub workflow for an exercise called 04_rcbd”
These steps were outlined on chapter 12: Connect Rstudio to Git and Github:
Name: 04_rcbdDescription: no descriptionpublicAdd a README file (always recommended)Add a .gitignore: select RFile > New Project > Version Control > GitRepository URL: Paste GitHub URLProject directory name: leave blankCreate project as subdirectory of: browse to this course main folder in your computer (where you see other project folders like 01_intro)Create ProjectFrom RStudio, launch your README, edit it, save it
Can you see the Git pane next to the environment? If not, then do View > Show git
Under Staged, check the box for README.md
Click on the checkmark icon (to commit)
Under commit message, write something short yet informative (e.g., updated readme)
Click on Commit, close log window
Git pane, click on the green up arrow to push your changesDid it all work? If yes, then you are all set to use git and GitHub! 🥳
If not, then we’ll need to troubleshoot it.
2025_dsa repoNext, let’s Fork and Clone the class repo, so you won’t need to do manual downloads anymore.
Detailed instructions found here
2025_dsa repo2025_dsa repodestdir and run in the console:2025_dsa repoNow, anytime I have new code or data files, all you need to do is:
Git pane, click on the green down arrow to pull the updates