Known issues: https://github.com/PredictiveEcology/NetLogoR/issues
- removed dependency:
sp
andraster
. There is still the possibility to convertsp
andraster
objects intoNetLogoR
objects and vice versa but except for these functions, all the others do not rely anymore onsp
andraster
objects and functions. - added dependency:
terra
- many changes to accommodate these connections to
terra
- several minor fixes for CRAN requirements
- several minor, including some speed improvements
- several corrections in documentation
- Deal with CRAN incoming check: "Running R code in ... had CPU time 3 times elapsed time" by setting OMP_THREAD_LIMIT = 1 during tests on CRAN
- removed dependency:
rgeos
- added dependency:
sf
- 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
- using sample in several agent functions would have given the wrong sample (see
?sample
) when the length of the argumentx
is 1. This occurred under some (but now all) conditions where there are multiple agents with the sameid
, along with some agents with only one member within anid
, and where the objective is to select one of the usingoneOf
ornOf(agent, n = 1)
. Now we useresample
as defined in the examples of?base::sample
. - minor bugfixes
- Fix for GDAL/PROJ crs issue (#43, @rsbivand)
- Drop support for R 3.5 (several dependencies require R >= 3.6)
NLwith()
now handlesNA
values (#36)- fixed bug in Programming Guide vignette (@DataStrategist, #42)
- improved documentation
- added link to new discussion forum: https://groups.google.com/g/netlogor
- 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 thewidth
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 forworldMatrix
andworldArray
, similar toRasterLayer
andRasterStack
. - Add tools so
quickPlot::Plot
works, e.g.,Plot(agentMatrixObj)
orPlot(worldMatrixObj)
orPlot(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
to3.3.0
as required by dependencyRandomFieldsUtils
.
- All key NetLogo functions rewritten in R, except visualizations and "links" agents.
- Adapted plot methods.