Welcome to the online home of Geocomputation with R, a forthcoming book with CRC Press.


Inspired by bookdown and other open source projects we are developing this book in the open. This approach encourages contributions, ensures reproducibility and provides access to the material as it evolves.

The book’s development can be divided into four main phases:

  1. Basic methods
  2. Applied geocomputation
  3. Advanced methods
  4. Geocomputation in the wild

Currently we are working on Part 3. New chapters will be added to this website as the project progresses, hosted at geocompr.robinlovelace.net and kept up-to-date thanks to Travis, which rebuilds the book each time its source code changes, and provides a visual indicator that reports the build status:

Build Status

The version of the book you are reading now was built on 2018-03-24 and was built on Travis.

How to contribute?

bookdown makes editing a book as easy as editing a wiki, provided you have a GitHub account (sign-up at github.com). Once logged-in to GitHub, clicking on the ‘edit me’ icon highlighted in the image below will take you to the source R Markdown where you can make changes:

To raise an issue about the book’s content (e.g. code not running) or make a feature request, check-out the issue tracker.


To reproduce the book, you need a recent version of R and up-to-date packages, which can be installed with the following command (which requires devtools):


To build the book locally, clone or download the geocompr repo, load R in root directory (e.g. by opening geocompr.Rproj in RStudio) and run the following lines:

bookdown::render_book("index.Rmd") # to build the book
browseURL("_book/index.html") # to view it

Further details can be found at github.com/Robinlovelace/geocompr.