Skip to content

Commit

Permalink
removing datasets tests
Browse files Browse the repository at this point in the history
  • Loading branch information
John Waller committed Apr 24, 2024
1 parent 632d019 commit 55717e5
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 31,414 deletions.
12 changes: 3 additions & 9 deletions R/geometry_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,15 @@ geometry_handler <- function(x, geom_big = "asis", size = 40, n = 10, verbose =
}
},
axe = {
.Deprecated(msg = "Using 'axe=' is deprecated Since rgbif v3.8.0. Please
.Deprecated(msg = "Using 'axe=' is deprecated Since rgbif v3.8.0. Please
use occ_download(pred_within('...')) instead for complex polygons.")
warning("This might return error or not work correctly, because of new polygon interpretation by GBIF.")
check_for_a_pkg("sf")
check_for_a_pkg("wk")
xsf <- sf::st_as_sfc(x[i])
gt <- sf::st_make_grid(xsf, cellsize = rep(size, 2), n = rep(n, 2))
res <- sf::st_intersection(xsf, gt)
out <- unlist(lapply(res, function(w) {
if (inherits(w, "MULTIPOLYGON")) {
mp2wkt(w)
} else {
sf::st_as_text(w)
}
out
unlist(lapply(res, function(w) {
if (inherits(w, "MULTIPOLYGON")) mp2wkt(w) else sf::st_as_text(w)
}))
}
)
Expand Down
12,988 changes: 0 additions & 12,988 deletions tests/fixtures/datasets.yml

This file was deleted.

10,125 changes: 0 additions & 10,125 deletions tests/fixtures/datasets_checklist.yml

This file was deleted.

32 changes: 0 additions & 32 deletions tests/fixtures/datasets_contact.yml

This file was deleted.

8,109 changes: 0 additions & 8,109 deletions tests/fixtures/datasets_deleted_duplicate.yml

This file was deleted.

24 changes: 0 additions & 24 deletions tests/fixtures/datasets_metadata.yml

This file was deleted.

38 changes: 0 additions & 38 deletions tests/fixtures/datasets_single.yml

This file was deleted.

89 changes: 0 additions & 89 deletions tests/testthat/test-datasets.r

This file was deleted.

0 comments on commit 55717e5

Please sign in to comment.