This package has tutorials for learning R as part of POL306 at Miami University. Below are steps to install it.
remotes
install.packages("remotes")
POL306
which has all the tutorials in itremotes::install_github("reuning/POL306")
library(POL306)
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.