This is a major version update causing breaking changes due to multiple CRAN packages no longer available as of R version 4.2 released April 2022.
- Removed dependencies
ff and deprecated use of
lowMemory argument in
ffbase was removed from CRAN April 2022).
- Removed dependency
RandomFields which is no longer maintained. We had to drop support for random landscape generation via
gaussMap(); but see the
NLMR package for tools to create random neutral landscapes.
spread2 was unable to use
start was the output of a previous
spread2 call to which
maxSize had not been supplied. This has now been fixed.
- drop support for R 3.6 (#65)
- fix error in
spread2() causing failures on R-devel
Require moved to
Suggests, because it’s only used in examples.
- Dropped support for R 3.5 due to changes in dependency packages. R versions 3.6 and higher are supported.
cl argument can now accept a numeric scalar indicating how many cores to use with an
distanceFromEachPoint: minor speed improvements
spread3 has new arguments (
- improved speed for
spread under most conditions, especially larger events, possibly up to 2x.
splitRaster() can now specify file extension, instead of defaulting to
- several under the hood improvements for stability, speed
distanceFromEachPoint bugfixes under some cases (some values of
angles would cause errors)
allowOverlap = TRUE would give wrong results. Fixed.
- update a test to deal with forthcoming
We have identified a non-trivial bug in
spread when using
allowOverlap = TRUE. Until we can patch this bug, using this argument value will generate an error. We are currently working on a fix, which may take some time.
- removed orphaned package
bit; its reverse dependencies,
ffbase, moved to Suggests
spread sped up for
allowOverlap = TRUE
- New values for
returnIndices arg in
spread, allowing for
numeric. New option,
2 allows for the fastest return possible, only
- fix issues with failing tests on CRAN
- Requires R >= 3.5
animation since it is used in the
backports for R-oldrel support
microbenchmark from Suggests: all benchmarking is removed from automated tests
spread2 speed enhancements
sf to suggests (used in examples)
spread2 now takes a numeric for
allowOverlap, to allow for 1 more scenario of overlapping, namely, allow between event overlapping, and within event overlapping only if the overlap occurs in the same iteration, otherwise, do not allow overlap within event.
- new function
spread3 for simulating e.g., insect spread
pointDistance is now exported
RandomFields moved to Suggests to prevent clashes with
randomPolygon now has
area argument, instead of
hectares (deprecated), and it now succeeds for more cases.
mergeRaster now accepts a function passed by the user when
mosaic is triggered (#55, @tati-micheletti)
initiateAgents example fixed to work with newer
raster package versions (@rhijmans)
splitRaster defaults to in-memory rasters when no file path specified (#47, @ianmseddy).
- Previously deprecated functions removed to fix CRAN check WARNINGs. These are now located in the
compiler package no longer used; is automatic in R >= 3.5
- new arguments added to
gaussMap (#20, @ianmseddy).
raster::crop is faster than
velox::crop under many tests.
fastMask(): moved to the
- minor bug fixes (
- minor test fixes.
mgcv added to Suggests because they are used in tests.
- add more detailed information to package Description, per CRAN.
randomPolygon function for single random polygon.
- speed improvements with
- minor bug fixes.