Biodiversity is in crisis. The overarching aim of conservation is to preserve biodiversity patterns and processes. To this end, protected areas are established to buffer species and preserve biodiversity processes. But resources are limited and so protected areas must be cost-effective. This package contains tools to generate plans for protected areas (prioritizations). Conservation planning data are used to construct an optimization problem, which is then solved to yield prioritizations. To solve the optimization problems in a feasible amount of time, this package uses the commercial 'Gurobi' software package (obtained from For more information on using this package, see Hanson et al. (2018) (


The main classes used in this package are used to store input data and prioritizations:


parameters for solving optimization problems using Gurobi.


parameters for the reliable formulation of RAP.


parameters for the unreliable formulation of RAP.


planning unit, species data, and demand points for RAP.


contains all the data and input parameters required to generate prioritizations using RAP. This class contains a GurobiOpts object, a RapReliableOpts or RapUnreliableOpts object, and a RapData object.


prioritizations and summary statistics on their performance.


contains all the input data, parameters and output data. This class contains all the objects in a RapUnsolved() object and also a RapResults object.

Type vignette("raptr") for a tutorial on how to use this package.