Last active
July 12, 2020 16:53
-
-
Save paleolimbot/0a65c6822d57f493473c3ec03ce0a788 to your computer and use it in GitHub Desktop.
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
# 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