Learnr

Tutorials are avialable to run through the R package learnr. These are interactive tutorials that give practice and exercises to supplement this site.

Install instructions

You will need R and RStudio installed on your computer.

Within RStudio you will need to install the learnr package and the packages our learnr tutorials require. Below are the R commands to install these.

#learnr
install.packages("learnr")
#tidyverse
install.packages("tidyverse")
#lterdatasample
install.packages("lterdatasampler")
#Our packages are available through github rather than cran
#To install github based packages you need to install and load 
# the remotes package
install.packages("remotes")
library("remotes")
#mgrtibbles
remotes::install_github("m-gemmell/mgrtibbles")
#neoftidytutorials
#Package with the tidyverse learnr tutorials
remotes::install_github("m-gemmell/neoftidytutorials")

Libraries

Prior to running any tutorials (next page) you must load the learnr and neoftidytutorials packages in your RStudio.

library("learnr")
library(neoftidytutorials)