Dependency changes

  • removed dependency: sp and raster. There is still the possibility to convert sp and raster objects into NetLogoR objects and vice versa but except for these functions, all the others do not rely anymore on sp and raster objects and functions.
  • added dependency: terra
  • many changes to accommodate these connections to terra

Bugfixes

  • several minor, including some speed improvements
  • several corrections in documentation

Dependency changes

  • removed dependency: rgeos
  • added dependency: sf

Dependency changes

  • removed support for R 3.6. To our knowledge, NetLogoR will still work with R 3.6, but we no longer support it.
  • removed dependencies: car, Hmisc, plyr

Bugfixes

  • using sample in several agent functions would have given the wrong sample (see ?sample) when the length of the argument x is 1. This occurred under some (but now all) conditions where there are multiple agents with the same id, along with some agents with only one member within an id, and where the objective is to select one of the using oneOf or nOf(agent, n = 1). Now we use resample as defined in the examples of ?base::sample.
  • minor bugfixes

Bugfixes

  • Updates to fix documentation and CRAN check problems
  • change maintainer to Eliot
  • R 3.5 is now minimum R version required. Too many dependencies are not maintaining their backwards compatibility.
  • Added new citation for the Ecography paper describing the package.
  • Updates to fix CRAN check problems.
  • Set random seed in two tests.
  • Add sf to Suggests, as it is used in tests.
  • Fix bug in turtlesOn(). Error when the world was not square.
  • Fix use of suggested packages in tests.
  • First CRAN release.
  • inRadius now multiplies the width by a tiny amount so that the function returns an inclusive result.
  • Add quickPlot >= 0.1.1.9000 dependency.
  • Update dependencies on SpaDES-related packages to only include the ones actually used.
  • Define [[ and $ for worldArray to extract subset layers.
  • Add show methods for worldMatrix and worldArray, similar to RasterLayer and RasterStack.
  • Add tools so quickPlot::Plot works, e.g., Plot(agentMatrixObj) or Plot(worldMatrixObj) or Plot(worldArrayObj), Plot(worldArrayObj$layer1). addTo argument implemented for layering, Plot(worldMatrixObj); Plot(agentMatrixObj, addTo="worldMatrixObj") will plot the agents on the map.
  • Minimum R version increased from 3.2.5 to 3.3.0 as required by dependency RandomFieldsUtils.
  • All key NetLogo functions rewritten in R, except visualizations and “links” agents.
  • Adapted plot methods.