R packages are collections of functions and datasets that extend the base functionality of R. You are already familar with them because whenever you type, for example, library(dplyr)
in your R script you are using a package `dplyr’ and its functions. In this workshop Sophie Curtis-Ham will demonstrate how you yourself can create R packages.
Note that the workshop is in the morning: 10:00-11:00. Join this workshop meeting on Zoom by clicking this link
Sophie Curtis-Ham, PhD, is Senior Research and Insights Advisor at the New Zealand police. She is the author of the R package
gpsmartr
, a tool for supporting geographic offender profiling.
Materials
The slides that Sophie uses in the workshop.
Sophie uses a couple of R packages in the workshop:
To reproduce the examples, you need to have installed a couple of packages (devtools, usethis, tidyverse, rlang, broom, here). To install them all, run: install.packages(c("devtools","usethis", "tidyverse", "rlang", "broom", "here"))
Citation
For attribution, please cite this work as (Curtis-Ham, n.d.)