Known issues: https://github.com/PredictiveEcology/SpaDES.tools/issues
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.
ffbase
and ff
and
deprecated use of lowMemory
argument in spread
(ffbase
was removed from CRAN April 2022).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.mergeRaster()
can deal with rasters with different
origins extents (i.e., that were not produced using
splitRaster()
)spread2
was unable to use maxSize
when
start
was the output of a previous spread2
call to which maxSize
had not been supplied. This has now
been fixed.spread2()
causing failures on R-develRequire
moved to Suggests
, because it’s
only used in examples.splitRaster()
(#62; @anbm-dk)distanceFromEachPoint
: cl
argument can now
accept a numeric scalar indicating how many cores to use with an
mclapply
internallydistanceFromEachPoint
: minor speed improvementsspread3
has new arguments (sdDist
,
dispersalKernel
)spread
under most conditions,
especially larger events, possibly up to 2x.splitRaster()
can now specify file extension, instead
of defaulting to .grd
distanceFromEachPoint
bugfixes under some cases (some
values of toCells
, angles
would cause
errors)spread
with allowOverlap = TRUE
would give
wrong results. Fixed.raster
changes.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.
bit
; its reverse dependencies,
ff
and ffbase
, moved to Suggestsspread
sped up for
allowOverlap = TRUE
returnIndices
arg in
spread
, allowing for numeric
. New option,
2
allows for the fastest return possible, only
pixelIndices
animation
since it is used in the
spread3
example.backports
for R-oldrel supportprofvis
and microbenchmark
from
Suggests: all benchmarking is removed from automated testsspread2
speed enhancementsanimation
, fasterize
, and
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.spread3
for simulating e.g.,
insect spreadpointDistance
is now exportedRandomFields
moved to Suggests to prevent clashes with
data.table
multithreadingrandomPolygon
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).reproducible
package.compiler
package no longer used; is automatic in R
>= 3.5gaussMap
(#20, @ianmseddy).fastMask
to reproducible
packagefastCrop()
: raster::crop
is faster than
velox::crop
under many tests.fastMask()
: moved to the reproducible
package.spread2
)dplyr
and mgcv
added to Suggests because
they are used in tests.randomPolygon
function for single random
polygon.spread2
when
asymmetry
used.A new package, which takes all auxiliary modelling functions out
of the SpaDES
package:
?SpaDES.tools::SpaDES.tools
for an overview of
included functionality.