roadMethod
to "ilcp"
in projectRoads
weightFunction
and add a weightFunction
gradePenaltyFn
that determines the grade between two cellsdem_example
to show how gradePenaltyFn
can be used. cost
to weightRaster
since it no longer represents a cost
surface and can now be inputs to the weightFunction
. Also change roadsInCost
to roadsInWeight
.getDistFromSource
and use terra::distance
instead. getLandingsFromTarget
and change so that patches are used for 0,1 rasters and
ids are used otherwise using terra::as.polygons to make it faster. terra
were causing roads to breakraster
and sp
from dependencies and converted example data to terra
and sf
formats. This requires a new function prepExData
to unwrap the terra
objects that needed to be wrapped for storageterra
throughout the package. raster
objects are still accepted but will be converted to terra
formats.getDistFromSource
function to use moving windows to quickly get a raster of the distance from the nearest source (e.g road).SpaDES.tools
dependency because it was archived on CRAN and there is an equivalent method in terra
now.NEWS.md
file to track changes to the package.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.