Chapter 1 Prerequisites

This workshop is designed for the attendance of FOSS4G 2019. So basics knowledge in GIS is expected (simple features, projections and CRS, geometrical operations, etc.).

No knowledge of R is required. A minimal knowledge of (R)mardown will be a plus to take notes.

Please install R on your system and the following libraries.

Please follow installation instructions from the CRAN projet.

The {sf} library needs several geospatial core libraries (GDAL, GEOS, PROJ) so please follow {sf} installation instructions to be sure to have those.

For Ubuntu users, ThinkR published a blogpost about the installation of r 3 5 on Ubuntu 18.04 LTS and tips for spatial packages

install.packages("dplyr")
install.packages("sf")
install.packages("spData")
install.packages("here")
install.packages("ggplot2")
install.packages("tmap")
install.packages("cartography")

For OSGeoLive users, there is already some of them installed in the distribution. Please start Jupyter Notebooks (Menu -> GeoSpatial -> Spatial Tools -> Jupyter Notebook). It should open a web page.

Click on New in the top right and start a new R Notebook. Then install only the following packages :

install.packages("dplyr")
install.packages("here")
install.packages("tmap")
install.packages("cartography")

1.1 About this document

This document had been written with the R Bookdown package and Rstudio. You can use the editor of your choice to follow the instruction, be careful on the path given by the {here} package.

To compile this example to PDF, you need XeLaTeX. You are recommended to install TinyTeX (which includes XeLaTeX): https://yihui.name/tinytex/.

You can contribute to this document on GitHub :

https://github.com/Bakaniko/FOSS4G2019_Geoprocessing_with_R_workshop