Running examples in ‘spatialEco-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: background
> ### Title: Background sample
> ### Aliases: background
> 
> ### ** Examples
> 
> library(sf)
Linking to GEOS 3.12.0, GDAL 3.7.2, PROJ 9.3.0; sf_use_s2() is TRUE
> 
> # define study area
> sa <- suppressWarnings(st_cast(st_read(
+         system.file("shape/nc.shp", 
+         package="sf")), "POLYGON"))
Reading layer `nc' from data source 
  `/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/sf/shape/nc.shp' 
  using driver `ESRI Shapefile'
Simple feature collection with 100 features and 14 fields
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
Geodetic CRS:  NAD27
>   sa <- sa[10,]
> 
> # create "known" locations  
> locs <- st_sample(sa, 50)
Error in st_segmentize.sfc(st_as_sfc(bb), units::set_units(1, "degree",  : 
  package lwgeom required, please install it first
Calls: st_sample ... st_poly_sample -> st_bbox -> st_segmentize -> st_segmentize.sfc
Execution halted
Running examples in ‘spatialEco-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: background
> ### Title: Background sample
> ### Aliases: background
> 
> ### ** Examples
> 
> library(sf)
Linking to GEOS 3.12.0, GDAL 3.7.2, PROJ 9.3.0; sf_use_s2() is TRUE
> 
> # define study area
> sa <- suppressWarnings(st_cast(st_read(
+         system.file("shape/nc.shp", 
+         package="sf")), "POLYGON"))
Reading layer `nc' from data source 
  `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/sf/shape/nc.shp' 
  using driver `ESRI Shapefile'
Simple feature collection with 100 features and 14 fields
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
Geodetic CRS:  NAD27
>   sa <- sa[10,]
> 
> # create "known" locations  
> locs <- st_sample(sa, 50)
Error in st_segmentize.sfc(st_as_sfc(bb), units::set_units(1, "degree",  : 
  package lwgeom required, please install it first
Calls: st_sample ... st_poly_sample -> st_bbox -> st_segmentize -> st_segmentize.sfc
Execution halted
Running examples in ‘spatialEco-Ex.R’ failed
The error most likely occurred in:

> ### Name: background
> ### Title: Background sample
> ### Aliases: background
> 
> ### ** Examples
> 
> library(sf)
Linking to GEOS 3.10.2, GDAL 3.4.3, PROJ 8.2.1; sf_use_s2() is TRUE
> 
> # define study area
> sa <- suppressWarnings(st_cast(st_read(
+         system.file("shape/nc.shp", 
+         package="sf")), "POLYGON"))
Reading layer `nc' from data source 
  `/data/gannet/ripley/R/test-clang/sf/shape/nc.shp' using driver `ESRI Shapefile'
Simple feature collection with 100 features and 14 fields
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
Geodetic CRS:  NAD27
>   sa <- sa[10,]
> 
> # create "known" locations  
> locs <- st_sample(sa, 50)
Error in st_segmentize.sfc(st_as_sfc(bb), units::set_units(1, "degree",  : 
  package lwgeom required, please install it first
Calls: st_sample ... st_poly_sample -> st_bbox -> st_segmentize -> st_segmentize.sfc
Execution halted
Running examples in 'spatialEco-Ex.R' failed
The error most likely occurred in:

> ### Name: background
> ### Title: Background sample
> ### Aliases: background
> 
> ### ** Examples
> 
> library(sf)
Linking to GEOS 3.11.2, GDAL 3.6.2, PROJ 9.2.0; sf_use_s2() is TRUE
> 
> # define study area
> sa <- suppressWarnings(st_cast(st_read(
+         system.file("shape/nc.shp", 
+         package="sf")), "POLYGON"))
Reading layer `nc' from data source `D:\RCompile\CRANpkg\lib\4.4\sf\shape\nc.shp' using driver `ESRI Shapefile'
Simple feature collection with 100 features and 14 fields
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
Geodetic CRS:  NAD27
>   sa <- sa[10,]
> 
> # create "known" locations  
> locs <- st_sample(sa, 50)
Error in st_segmentize.sfc(st_as_sfc(bb), units::set_units(1, "degree",  : 
  package lwgeom required, please install it first
Calls: st_sample ... st_poly_sample -> st_bbox -> st_segmentize -> st_segmentize.sfc
Execution halted
Running examples in ‘spatialEco-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: background
> ### Title: Background sample
> ### Aliases: background
> 
> ### ** Examples
> 
> library(sf)
Linking to GEOS 3.12.0, GDAL 3.7.2, PROJ 9.3.0; sf_use_s2() is TRUE
> 
> # define study area
> sa <- suppressWarnings(st_cast(st_read(
+         system.file("shape/nc.shp", 
+         package="sf")), "POLYGON"))
Reading layer `nc' from data source 
  `/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/sf/shape/nc.shp' 
  using driver `ESRI Shapefile'
Simple feature collection with 100 features and 14 fields
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
Geodetic CRS:  NAD27
>   sa <- sa[10,]
> 
> # create "known" locations  
> locs <- st_sample(sa, 50)
Error in st_segmentize.sfc(st_as_sfc(bb), units::set_units(1, "degree",  : 
  package lwgeom required, please install it first
Calls: st_sample ... st_poly_sample -> st_bbox -> st_segmentize -> st_segmentize.sfc
Execution halted
Running examples in ‘spatialEco-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: background
> ### Title: Background sample
> ### Aliases: background
> 
> ### ** Examples
> 
> library(sf)
Linking to GEOS 3.12.0, GDAL 3.7.2, PROJ 9.3.0; sf_use_s2() is TRUE
> 
> # define study area
> sa <- suppressWarnings(st_cast(st_read(
+         system.file("shape/nc.shp", 
+         package="sf")), "POLYGON"))
Reading layer `nc' from data source 
  `/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/sf/shape/nc.shp' 
  using driver `ESRI Shapefile'
Simple feature collection with 100 features and 14 fields
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
Geodetic CRS:  NAD27
>   sa <- sa[10,]
> 
> # create "known" locations  
> locs <- st_sample(sa, 50)
Error in st_segmentize.sfc(st_as_sfc(bb), units::set_units(1, "degree",  : 
  package lwgeom required, please install it first
Calls: st_sample ... st_poly_sample -> st_bbox -> st_segmentize -> st_segmentize.sfc
Execution halted
Running examples in 'spatialEco-Ex.R' failed
The error most likely occurred in:

> ### Name: background
> ### Title: Background sample
> ### Aliases: background
> 
> ### ** Examples
> 
> library(sf)
Linking to GEOS 3.11.2, GDAL 3.6.2, PROJ 9.2.0; sf_use_s2() is TRUE
> 
> # define study area
> sa <- suppressWarnings(st_cast(st_read(
+         system.file("shape/nc.shp", 
+         package="sf")), "POLYGON"))
Reading layer `nc' from data source `D:\RCompile\CRANpkg\lib\4.3\sf\shape\nc.shp' using driver `ESRI Shapefile'
Simple feature collection with 100 features and 14 fields
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
Geodetic CRS:  NAD27
>   sa <- sa[10,]
> 
> # create "known" locations  
> locs <- st_sample(sa, 50)
Error in st_segmentize.sfc(st_as_sfc(bb), units::set_units(1, "degree",  : 
  package lwgeom required, please install it first
Calls: st_sample ... st_poly_sample -> st_bbox -> st_segmentize -> st_segmentize.sfc
Execution halted
Running examples in 'spatialEco-Ex.R' failed
The error most likely occurred in:

> ### Name: background
> ### Title: Background sample
> ### Aliases: background
> 
> ### ** Examples
> 
> library(sf)
Linking to GEOS 3.9.3, GDAL 3.5.2, PROJ 8.2.1; sf_use_s2() is TRUE
> 
> # define study area
> sa <- suppressWarnings(st_cast(st_read(
+         system.file("shape/nc.shp", 
+         package="sf")), "POLYGON"))
Reading layer `nc' from data source `D:\RCompile\CRANpkg\lib\4.2\sf\shape\nc.shp' using driver `ESRI Shapefile'
Simple feature collection with 100 features and 14 fields
Geometry type: MULTIPOLYGON
Dimension:     XY
Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
Geodetic CRS:  NAD27
>   sa <- sa[10,]
> 
> # create "known" locations  
> locs <- st_sample(sa, 50)
Error in st_segmentize.sfc(st_as_sfc(bb), units::set_units(1, "degree",  : 
  package lwgeom required, please install it first
Calls: st_sample ... st_poly_sample -> st_bbox -> st_segmentize -> st_segmentize.sfc
Execution halted