We will be using a set of tutorials that run in R as an aide. To run them you need to install several packages (packages are addons for R that allow us to do things that base R does not). If you want to understand the details of what we are doing I’ve written an explanation below the steps.
POL306which has all the tutorials in it
I wrote our tutorials into an R package, and have it available for anyone on Github. Github is used to share code and programs (as well as to develop them with a community). You can install a package from Github, but not natively in R. Instead we need the
remotes package, which has a function called
install_github(). So what we do is install remotes (
install.packages('remotes')) then access the
install_github() function from it to install my package (
remotes::install_github('reuning/POL306')). Finally we load the
POL306 package by calling
library(POl306). We do not need to do this, but I wrote it so that if it loads successfully you will get a nice little message.