NetLogoR: Build and Run Spatially Explicit Agent-Based Models

Build and run spatially explicit agent-based models using only the R platform. 'NetLogoR' follows the same framework as the 'NetLogo' software (Wilensky, 1999 <>) and is a translation in R of the structure and functions of 'NetLogo'. 'NetLogoR' provides new R classes to define model agents and functions to implement spatially explicit agent-based models in the R environment. This package allows benefiting of the fast and easy coding phase from the highly developed 'NetLogo' framework, coupled with the versatility, power and massive resources of the R software. Examples of three models (Ants <>, Butterfly (Railsback and Grimm, 2012) and Wolf-Sheep-Predation <>) written using 'NetLogoR' are available. The 'NetLogo' code of the original version of these models is provided alongside. A programming guide inspired from the 'NetLogo' Programming Guide (<>) and a dictionary of 'NetLogo' primitives (<>) equivalences are also available. NOTE: To increment 'time', these functions can use a for loop or can be integrated with a discrete event simulator, such as 'SpaDES' (<>). The suggested package 'fastshp' can be installed with 'install.packages("fastshp", repos = "", type = "source")'.

Version: 0.3.5
Depends: R (≥ 3.3.0), raster
Imports: abind, car, CircStats, data.table, grDevices, Hmisc, matrixStats, methods, plyr, quickPlot (≥ 0.1.2), sp,, stats, rgeos
Suggests: fastshp, knitr, magrittr, microbenchmark, rmarkdown, sf, SpaDES.core, testthat
Published: 2019-01-25
Author: Sarah Bauduin ORCID iD [aut, cre], Eliot J B McIntire ORCID iD [aut], Alex M Chubaty ORCID iD [aut], Her Majesty the Queen in Right of Canada, as represented by the Minister of Natural Resources Canada [cph]
Maintainer: Sarah Bauduin <sarahbauduin at>
License: GPL-3
NeedsCompilation: no
Materials: README NEWS
CRAN checks: NetLogoR results


Reference manual: NetLogoR.pdf
Vignettes: 'NetLogoR' Dictionary
Programming Guide 'NetLogoR'
Package source: NetLogoR_0.3.5.tar.gz
Windows binaries: r-devel:, r-devel-gcc8:, r-release:, r-oldrel:
OS X binaries: r-release: NetLogoR_0.3.5.tgz, r-oldrel: NetLogoR_0.3.5.tgz
Old sources: NetLogoR archive


Please use the canonical form to link to this page.