The goal of the qcbsRworkshops 📦 is to ease the development and editions of the QCBS R workshops.
You can install the development version of qcbsRworkshops with remotes 📦:
install.packages("remotes")
remotes::install_github("QCBSRworkshops/qcbsRworkshops")
Once installed, you can load the package:
library(qcbsRworkshops)
There are two options:
- the sources of the workshop are already in your computer, then use:
# if the workshop folder is the current directory (preferred), then use
build_workshops()
# if the path to the workshop folder is "path2workshop", then use
build_workshops("path2workshop")
- the sources of a the workshop must be downloaded, in such case a zip file will be downloaded:
build_workshops(download = TRUE, id = 1)
To clean up cache and files created during the build of the workshop (the slides), use
# if the workshop folder is the current directory (preferred), then use
clean_workshops()
# if the path to the workshop folder is "path2workshop", then use
build_workshops("path2workshop")
To update the template (see https://github.com/QCBSRworkshops/templateWorkshops), use
# if the workshop folder is the current directory (preferred), then use
update_template()
# if the path to the workshop folder is "path2workshop", then use
update_template("path2workshop")
knitr provides a nice function that extract R code from all code chunk and this 📦 has a wrapper to extract the code for all the workshops in your working directory.
extract_Rcode_workshops("path2workshop")
mail_workshop()
generates emails te be sent to participants ~2 weeks before
the workshop. Just add your name and the details and an email will be generated
that you can copy-paste.
mail_workshop(7, pres_name = "Kevin Cazelles", lang = "both",
details_fr = "à l'UdeM, salle A-2553, campus MIL, le vendredi 28 Février 2020 de 13h à 17h",
details_en = "at the UdeM, MIL campus, room A-2553, on Friday February 28th 2020, 1pm-5pm"
)
Please note that the 'qcbsRworkshops' project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.