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) <http://ccl.northwestern.edu/netlogo/>) 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 two models from the NetLogo software repository (Ants <http://ccl.northwestern.edu/netlogo/models/Ants>) and Wolf-Sheep-Predation (<http://ccl.northwestern.edu/netlogo/models/WolfSheepPredation>), and a third, Butterfly, from Railsback and Grimm (2012) <https://www.railsback-grimm-abm-book.com/>, all 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 (<https://ccl.northwestern.edu/netlogo/docs/programming.html>) and a dictionary of 'NetLogo' primitives (<https://ccl.northwestern.edu/netlogo/docs/dictionary.html>) 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' (<https://cran.r-project.org/package=SpaDES>). The suggested package 'fastshp' can be installed with 'install.packages("fastshp", repos = ("<https://rforge.net>"), type = "source")'.

Version: 1.0.5
Depends: R (≥ 4.1)
Imports: data.table, grDevices, methods, quickPlot (≥ 1.0.2), stats, terra, utils
Suggests: CircStats, covr, fastshp, knitr, microbenchmark, raster, rmarkdown, sf, sp, SpaDES.core (≥ 2.0.3), SpaDES.tools (≥ 2.0.5), testthat, withr
Published: 2024-01-08
DOI: 10.32614/CRAN.package.NetLogoR
Author: Sarah Bauduin ORCID iD [aut], Eliot J B McIntire ORCID iD [aut, cre], Alex M Chubaty ORCID iD [aut], His Majesty the King in Right of Canada, as represented by the Minister of Natural Resources Canada [cph]
Maintainer: Eliot J B McIntire <eliot.mcintire at canada.ca>
BugReports: https://github.com/PredictiveEcology/NetLogoR/issues
License: GPL-3
URL: https://netlogor.predictiveecology.org, https://github.com/PredictiveEcology/NetLogoR/, https://groups.google.com/g/netlogor
NeedsCompilation: no
Additional_repositories: https://predictiveecology.r-universe.dev/
Language: en-CA
Citation: NetLogoR citation info
Materials: README NEWS
CRAN checks: NetLogoR results

Documentation:

Reference manual: NetLogoR.pdf
Vignettes: NetLogoR Dictionary
Programming Guide 'NetLogoR'

Downloads:

Package source: NetLogoR_1.0.5.tar.gz
Windows binaries: r-devel: NetLogoR_1.0.5.zip, r-release: NetLogoR_1.0.5.zip, r-oldrel: NetLogoR_1.0.5.zip
macOS binaries: r-release (arm64): NetLogoR_1.0.5.tgz, r-oldrel (arm64): NetLogoR_1.0.5.tgz, r-release (x86_64): NetLogoR_1.0.5.tgz, r-oldrel (x86_64): NetLogoR_1.0.5.tgz
Old sources: NetLogoR archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=NetLogoR to link to this page.