-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replace st_concave_hull with
st_concave_hull_ext()
- Loading branch information
1 parent
e25ca71
commit 9e97b5b
Showing
7 changed files
with
51 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,6 @@ Imports: | |
units, | ||
vctrs | ||
Suggests: | ||
concaveman, | ||
covr, | ||
esri2sf (>= 0.1.1), | ||
exiftoolr, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
tests/testthat/test-st_concave_hull.R → tests/testthat/test-st_concave_hull_ext.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
test_that("st_concave_hull works", { | ||
test_that("st_concave_hull_ext works", { | ||
nc <- sf::read_sf(system.file("shape/nc.shp", package = "sf")) | ||
nc$group <- sample(c("A", "B", "C"), size = nrow(nc), replace = TRUE) | ||
|
||
expect_s3_class( | ||
st_concave_hull(nc), | ||
st_concave_hull_ext(nc), | ||
"sf" | ||
) | ||
expect_s3_class( | ||
st_concave_hull(sf::st_geometry(nc)), | ||
st_concave_hull_ext(sf::st_geometry(nc)), | ||
"sfc" | ||
) | ||
expect_identical( | ||
nrow(st_concave_hull(nc, by = "group")), | ||
nrow(st_concave_hull_ext(nc, by = "group")), | ||
3L | ||
) | ||
}) |