Additional Tools for Developing Spatially Explicit Discrete Event Simulation (SpaDES) Models

Provides GIS and map utilities, plus additional modeling tools for developing cellular automata, dynamic raster models, and agent based models in 'SpaDES'. Included are various methods for spatial spreading, spatial agents, GIS operations, random map generation, and others. See '?' for an categorized overview of these additional tools.

Build Status Appveyor Build status Coverage Status CRAN_Status_Badge Downloads

Additional modelling tools for Spatial Discrete Event Simulation (SpaDES) module development.

Provides GIS/map utilities and additional modeling tools for developing cellular automata and agent based models in SpaDES.




Building packages from source requires the appropriate development libraries for your operating system (e.g., Windows users should install Rtools).

Current stable release

Install from CRAN:


Install from GitHub:

install_github("PredictiveEcology/", dependencies = TRUE) # stable

Development version (unstable)

Install from GitHub:

install_github("PredictiveEcology/", ref = "development", dependencies = TRUE) # unstable


Known issues:

version 0.3.2

Dependency changes

  • Added animation, fasterize, and sf to suggests (used in examples)


  • minor bug fixes


  • spread2 now takes a numeric for allowOverlap, to allow for 1 more scenario of overlapping, namely, allow between event overlapping, and within event overlapping only if the overlap occurs in the same iteration, otherwise, do not allow overlap within event.
  • new function spread3 for simulating e.g., insect spread
  • pointDistance is now exported

version 0.3.1

Dependency changes

  • RandomFields moved to Suggests to prevent clashes with data.table multithreading


  • randomPolygon now has area argument, instead of hectares (deprecated), and it now succeeds for more cases.
  • mergeRaster now accepts a function passed by the user when mosaic is triggered (#55, @tati-micheletti)
  • initiateAgents example fixed to work with newer raster package versions (@rhijmans)

version 0.3.0

New features

  • splitRaster defaults to in-memory rasters when no file path specified (#47, @ianmseddy).

Removed features

  • Previously deprecated functions removed to fix CRAN check WARNINGs. These are now located in the reproducible package.
  • compiler package no longer used; is automatic in R >= 3.5

version 0.2.0

New features

  • new arguments added to gaussMap (#20, @ianmseddy).
  • move fastMask to reproducible package

Deprecated functions

  • fastCrop(): raster::crop is faster than velox::crop under many tests.
  • fastMask(): moved to the reproducible package.

Bug fixes

  • minor bug fixes (spread2)
  • minor test fixes.

Dependency changes

  • dplyr and mgcv added to Suggests because they are used in tests.

version 0.1.1

  • add more detailed information to package Description, per CRAN.
  • add randomPolygon function for single random polygon.
  • speed improvements with spread2 when asymmetry used.
  • minor bug fixes.

version 0.1.0

  • A new package, which takes all auxiliary modelling functions out of the SpaDES package:

    • see ? for an overview of included functionality.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.3.9 by Alex M Chubaty, 2 months ago,

Report a bug at

Browse source code at

Authors: Alex M Chubaty [aut, cre] , Eliot J B McIntire [aut] , Yong Luo [ctb] , Steve Cumming [ctb] , Jean Marchal [ctb] , Her Majesty the Queen in Right of Canada , as represented by the Minister of Natural Resources Canada [cph]

Documentation:   PDF Manual  

GPL-3 license

Imports backports, checkmate, CircStats, data.table, fastmatch, fpCompare, magrittr, methods, parallel, quickPlot, raster, Rcpp, reproducible, rgeos, sp, stats

Suggests animation, bit, DBI, DEoptim, dplyr, dqrng, fasterize, ff, ffbase, gdalUtils, googledrive, knitr, mgcv, RandomFields, RColorBrewer, Require, rmarkdown, sf, testthat, covr

Linking to Rcpp

Imported by NetLogoR, SpaDES.

Suggested by SpaDES.core.

See at CRAN