Skip to contents

This sections describes how to install the {mapme.agriculture} package. Because the package handles some spatial data, we assume that you have a working installation of GDAL and PROJ on your system. Please refer to the respective installation guides to learn about how to install these programs on your OS.

In order to be able to download data from the FAO WaPOR API make sure to register an account and create and API key that you should have at hand to identify your queries to the server.

Installing the {mapme.agriculture} package is then achieved trough the following function call:

remotes::install_github("mapme-initiative/mapme.agriculture")

The installation process will install potential missing R dependencies. After the successful installation, you are ready to use the package’s functionality. Simply load the package for your R session with the library call:

library(mapme.agriculture)