- using R Under development (unstable) (2023-09-17 r85158)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 16.0.6 (15)
GNU Fortran (Debian 13.2.0-3) 13.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘spatialEco/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘spatialEco’ version ‘2.0-1’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘spatialEco’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [9s/10s] OK
- checking whether the package can be loaded with stated dependencies ... [9s/12s] OK
- checking whether the package can be unloaded cleanly ... [9s/10s] OK
- checking whether the namespace can be loaded with stated dependencies ... [9s/10s] OK
- checking whether the namespace can be unloaded cleanly ... [9s/10s] OK
- checking loading without being on the library search path ... [9s/10s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [66s/75s] OK
- checking Rd files ... [2s/2s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [1s/1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [11s/13s] ERROR
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
- checking PDF version of manual ... [12s/17s] OK
- checking HTML version of manual ... [7s/12s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR