prioritizr / wdpar

Interface to the World Database on Protected Areas
https://prioritizr.github.io/wdpar
GNU General Public License v3.0
37 stars 5 forks source link

st_make_valid no longer exported by lwgeom, but by sf #24

Closed edzer closed 4 years ago

edzer commented 4 years ago

Please update your package and resubmit to CRAN, to avoid CRAN errors on your package.

New result: ERROR
  Running examples in ‘wdpar-Ex.R’ failed
  The error most likely occurred in:

  > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
  > ### Name: st_erase_overlaps
  > ### Title: Erase overlaps
  > ### Aliases: st_erase_overlaps
  > 
  > ### ** Examples
  > 
  > # create data
  > pl1 <- sf::st_polygon(list(matrix(c(0, 0, 2, 0, 1, 1, 0, 0), byrow = TRUE,
  +                                   ncol = 2))) * 100
  > pl2 <- sf::st_polygon(list(matrix(c(0, 0.5, 2, 0.5, 1, 1.5, 0, 0.5),
  +                                   byrow = TRUE, ncol = 2))) * 100
  > pl3 <- sf::st_polygon(list(matrix(c(0, 1.25, 2, 1.25, 1, 2.5, 0, 1.25),
  +                                   byrow = TRUE, ncol = 2))) * 100
  > x <- sf::st_sf(order = c("A", "B", "C"),
  +                geometry = sf::st_sfc(list(pl1, pl2, pl3), crs = 3395))
  > 
  > # erase overlaps
  > y <- st_erase_overlaps(x)
  Error: 'st_make_valid' is not an exported object from 'namespace:lwgeom'
  Execution halted
jeffreyhanson commented 4 years ago

Thanks so much for the heads up @edzer! I'll submit this fix ASAP.