Skip to content

Instantly share code, notes, and snippets.

@paleolimbot
Last active July 12, 2020 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paleolimbot/0a65c6822d57f493473c3ec03ce0a788 to your computer and use it in GitHub Desktop.
Save paleolimbot/0a65c6822d57f493473c3ec03ce0a788 to your computer and use it in GitHub Desktop.
# loading in this order causes sf to crash if libgeos links to system GEOS
# remotes::install_github("paleolimbot/libgeos", configure.vars = "USE_SYSTEM_GEOS=YES")
library(libgeos)
library(sf)
nc <- read_sf(system.file("shape/nc.shp", package = "sf"))
nc1 <- nc[1, , drop = FALSE]
st_intersects(nc, nc1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment