-
Notifications
You must be signed in to change notification settings - Fork 6
Home
In this section, we explain how you can contribute to the QCBS R workshops.
This Rmarkdown presentations are created using xaringan, so the first step in to install the R package xaringan.
if(!require(devtools)) install.packages('devtools')
devtools::install_github('yihui/xaringan')
Secondly, you need to create a local copy on your computer of the Workshops repository. To do so, you can clone the GitHub repository on your computer using the command line:
git clone https://github.com/QCBSRworkshops/Workshops.git
-
Once you cloned the Workshops repository, you should be on the dev branch.
-
Create a new branch (choose a name that reflects what you are adding, we suggest something explicit like
workshop3_intro
if you want to edit the introduction of workshop 3):git branch workshop3_intro
. -
Switch branch:
git checkout workshop3_intro
; Note that you can create and switch branch with a single line of command:git checkout -b workshop3_intro
. -
Do your changes!
-
Once you are done with your changes on your branch, add and commit :
git add -A
andgit commit -m "instructive message about what you did"
. -
Go back on the dev branch:
git checkout dev
and pullgit pull
just to make sure you are up to date. -
Switch back to your branch:
git checkout workshop3_intro
and merge locally:git merge dev
. If there are conflicts, please resolve them! When you're done, push your branch on the Github repository:git push --set-upstream origin workshop3_intro
. -
Open a Pull Request (PR).
-
Assign your PR to a reviewer (one of the 3 R workshop coordinators).
-
The reviewer will squash and merge the post once the build passed on Travis.
-
Once the PR is merged, do not forget to pull the dev branch!
If you are not confortable with GitHub, you can still help us improve the workshops!
If you notice any mistakes or inconsistencies, or if you'd like to make a suggestion, either in form or in content, you're invited to open an Issue. You can follow these simple steps to create a new Issue.
The template files (names that start with qcbsR...
) and assets folder that are used to build the final presentations are in the repo templateWorkshops
; the version in the workshop folder are only used locally. This means that local modification to the template files will not be used once you pushed. To modify the template, you need to modify from the templateWorkshops
, then you can use the command line : make copy_css
to copy the template files in all the workshop folders.