Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Latest commit

 

History

History
35 lines (18 loc) · 1.78 KB

File metadata and controls

35 lines (18 loc) · 1.78 KB

Tutorials

Running the code online

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):

Binder

Running the code locally

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.