Running ‘testthat.R’ [14s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(spsurvey)
  Loading required package: sf
  Linking to GEOS 3.7.1, GDAL 2.3.2, PROJ 5.2.0
  Loading required package: sp
  
  Version 4.1.0 of the spsurvey package was loaded successfully.
  
  > 
  > test_check("spsurvey")
  
  Stratum: None 
  Current number of levels: 2 
  Current number of levels: 3 
  Current number of levels: 4 
  Final number of levels: 4 
  
  Stratum: None 
  Current number of levels: 2 
  Current number of levels: 3 
  Current number of levels: 4 
  Final number of levels: 4 
  
  Stratum: None 
  Current number of levels: 2 
  Current number of levels: 3 
  Current number of levels: 4 
  Final number of levels: 4 
  
  Stratum: None 
  Current number of levels: 2 
  Current number of levels: 3 
  Final number of levels: 3 
  
  Stratum: LAKE/POND 
  Current number of levels: 2 
  Current number of levels: 4 
  Final number of levels: 4 
  
  Stratum: RESERVOIR 
  Current number of levels: 2 
  Current number of levels: 3 
  Current number of levels: 4 
  Current number of levels: 5 
  Current number of levels: 6 
  Final number of levels: 6 
  
  Stratum: None 
  Current number of levels: 2 
  Current number of levels: 3 
  Final number of levels: 3 
  
  Stratum: None 
  Current number of levels: 2 
  Current number of levels: 4 
  Current number of levels: 5 
  Current number of levels: 6 
  Final number of levels: 6 
  OGR: Corrupt data
  ── 1. Error: (unknown) (@test-grts.R#105)  ─────────────────────────────────────
  OGR error
  Backtrace:
   1. sf::st_write(fp_len, "fp_len.shp", quiet = TRUE, delete_dsn = TRUE)
   2. sf:::st_write.sf(fp_len, "fp_len.shp", quiet = TRUE, delete_dsn = TRUE)
   3. sf:::CPL_write_ogr(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 28 | SKIPPED: 0 | WARNINGS: 3 | FAILED: 1 ]
  1. Error: (unknown) (@test-grts.R#105) 
  
  Error: testthat unit tests failed
  Execution halted