Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
josie-hughes committed Mar 14, 2024
1 parent d566bbb commit 8439190
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
4 changes: 2 additions & 2 deletions R/projectRoads.R
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ setGeneric('projectRoads', function(landings = NULL,
plotRoads = FALSE,
mainTitle = "",
neighbourhood = "octagon",
weightFunction=function(x1,x2) (x1+x2)/2
weightFunction=function(x1,x2) (x1+x2)/2,
sim = NULL,
roadsOut = NULL,
roadsInCost = TRUE,
Expand Down Expand Up @@ -277,7 +277,7 @@ setMethod(
setMethod(
'projectRoads', signature(sim = "list"),
function(landings, cost, roads, roadMethod, plotRoads, mainTitle,
neighbourhood, sim, roadsOut, roadsInCost, ordering) {
neighbourhood, weightFunction,sim, roadsOut, roadsInCost, ordering) {

# If roads in are raster return as raster
if((is(sim$roads, "Raster") || is(sim$roads, "SpatRaster")) && is.null(roadsOut) ){
Expand Down
23 changes: 15 additions & 8 deletions man/projectRoads.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8439190

Please sign in to comment.