-
Notifications
You must be signed in to change notification settings - Fork 15
Editing the materials
Dorien Huijser edited this page Apr 29, 2025
·
4 revisions
- Install R and Rstudio, see the Introduction to R instructions on how to do this.
- Install Quarto. You can either run
install.packages("quarto")in Rstudio, or download and install Quarto from the Quarto website. - Install and configure git and GitHub. See the instructions for the Reproducible Code workshop how to do this.
- Editing rights to this GitHub repository.
If you want to edit the book:
- Clone the repository to your local device.
- Create a new branch (in the command line:
git checkout -b new-branch-name) - Make your edits. This can be in:
- The course materials, i.e. the exercises in .Rmd files which participants work in during the workshop. Important: If you make a change in the exercises, you need to also make that same change in the slides!
- The slides. These are located in the
book/slidesfolder and are Quarto slides (.qmd). There is a file for the morning session slides and a file for the afternoon session on tidyverse. - The book chapters, such as the schedule, the pages that embed the slides, or the What's next page. These are quarto files (.qmd) in the
bookfolder.
- If you want to preview the changes, you can execute
quarto preview bookin the terminal, or alternatively click Render in RStudio. - If you're happy with your edits, stage (
git add file-to-stage) and commit them (`git commit -m "describe your edits here"). - Push the edits to GitHub (
git push origin new-branch-name) or click the Push button in Rstudio. - Create a Pull Request in the GitHub repository to merge
new-branch-namewith themainbranch. Describe which changes were made in the PR description! - If you have the rights to do so, merge the PR, or have a colleague review the PR and merge it.
After merging the changes with the main branch, the GitHub Actions workflows will generate the HTML version of the materials and host them on https://utrechtuniversity.github.io/workshop-introduction-to-R-and-data/.