Skip to content

NetLogoR

Build and Run Spatially Explicit Agent-Based Models

v1.0.6 · Sep 2, 2025 · GPL-3

Description

Build and run spatially explicit agent-based models using only the R platform. 'NetLogoR' follows the same framework as the 'NetLogo' software (Wilensky (1999) <https://www.netlogo.org>) 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 <https://ccl.northwestern.edu/netlogo/models/Ants>) and Wolf-Sheep-Predation (<https://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://docs.netlogo.org/programming.html>) and a dictionary of 'NetLogo' primitives (<https://docs.netlogo.org/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>).

Downloads

309

Last 30 days

12906th

834

Last 90 days

3.6K

Last year

Trend: +13.6% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies data.table quickPlot terra NetLogoR

Version History

new 1.0.6 Mar 10, 2026
updated 1.0.6 ← 1.0.5 diff Sep 2, 2025
updated 1.0.5 ← 0.3.11 diff Jan 7, 2024
updated 0.3.11 ← 0.3.10 diff Aug 16, 2022
updated 0.3.10 ← 0.3.9 diff Feb 17, 2022
updated 0.3.9 ← 0.3.8 diff Oct 18, 2021
updated 0.3.8 ← 0.3.7 diff Jul 9, 2021
updated 0.3.7 ← 0.3.6 diff Mar 1, 2020
updated 0.3.6 ← 0.3.5 diff Nov 26, 2019
updated 0.3.5 ← 0.3.4 diff Jan 24, 2019
updated 0.3.4 ← 0.3.3 diff Oct 6, 2018
updated 0.3.3 ← 0.3.2 diff Jun 6, 2018
updated 0.3.2 ← 0.3.1 diff Feb 11, 2018
new 0.3.1 Feb 4, 2018