New package NetLogoR now on CRAN


Sarah Bauduin


February 6, 2018

v0.3.1 is now available on CRAN.

NetLogoR is a R package to help you build raster- and individual-based models in the R environment following the framework of NetLogo (Wilenski 1999). This package does not require installation of the original NetLogo software; it is a translation into the R language of the structure and functions of NetLogo. NetLogoR provides you classes to define raster cell (“patches”) and moving individual (“turtles”) objects as well as the R translation of NetLogo functions and other complementary ones to build such models. This package allows you to benefit of the fast and easy coding phase from the highly developed NetLogo structure and functions, coupled with the versatility and speed of the R software. The use of the SpaDES package complements well NetLogoR by providing useful functions, such as for model visualization.

For a complete list of changes, see the package’s NEWS file.


NetLogoR package:


Install development libraries: building packages from source requires the appropriate development libraries for your operating system.

  • Windows: install Rtools.
  • macOS: install Xcode commandline tools from the terminal: xcode-select install.
  • Debian/Ubuntu Linux: ensure r-base-dev is installed.

See here for more details.

Current stable release

Install from CRAN:


Install from GitHub:

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

Development version (unstable)

Install from GitHub:

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

Reporting bugs

Bug reports should be reported via the package’s GitHub site: