These tutorials can be run online using the binder service and relying on the rocker/binder R community managed Docker files.
Click the binder link to run the tutorials (inside the src
folder):
These tutorials (inside the src
directory) were setup as Jupyter notebooks, using an R kernel to enable R code within the notebook. To use notebooks yourself on your machine, we advice you to install Anaconda, as eplained in the jupyter installation guide
In order to use R in the Jupyter notebook as a kernel, you need to install the IRkernel and make it available to Jupyter by the steps explained in this link.
A number of R dependencies are required to run the code itself apart from the highlighted packages (rgbif
and wateRinfo
). Following pacakages need to be installed as well:
For the rgbif
tutorial:
install.packages(c('tidyverse', 'rgeos', 'rgdal', 'sp', 'ggmap', 'leaflet', 'assertthat', 'stringr', 'magrittr'))
For the wateRinfo
tutorial:
install.packages(c('tidyverse','RColorBrewer'))
Note: Both tutorials can be used as slideshow presentation, using the RISE extension (also known as live_reveal). When provided, an additional menu item is provided to convert the tutorial in an interactive slideshow. However, this is not required to try out the code and was done purely for demonstration purposes.