Skip to content

Commit

Permalink
fixes #930
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Feb 17, 2024
1 parent f16fc58 commit 8dcd715
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/focal.R
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,11 @@ function(x, w=3, fun="ols", ..., fillvalue=NA, filename="", overwrite=FALSE, wop
outnl <- funopt$nl
} else {
# need to test
#outnl <-
out <- fun(1:msz, sample(msz))
outnl <- length(out)
if (is.null(wopt$names) && (length(names(out)) == outnl)) {
wopt$names <- names(out)
}
}
out <- rast(x, nlyr=outnl)

Expand Down

0 comments on commit 8dcd715

Please sign in to comment.