Closed wenzeslaus closed 3 years ago
Unlike rasterToPoints, terra::as.points does not have fun and spatial parameters. The current code:
rasterToPoints
terra::as.points
fun
spatial
suitable_points <- terra::as.points(suitable, fun = function(x) { x > 0 }, spatial = TRUE)
produces:
Error: unused arguments (fun = function(x) { x > 0 }, spatial = TRUE)
with devtools::test().
devtools::test()
Discovered in #81. Terra introduced in #79.
This initially surfaced with #81, but now it is there for every PR/change which is actually more expected.
Unlike
rasterToPoints
,terra::as.points
does not havefun
andspatial
parameters. The current code:produces:
with
devtools::test()
.Discovered in #81. Terra introduced in #79.