Running 'testthat.R' [129s/140s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(spsurvey)
  Loading required package: sf
  Linking to GEOS 3.10.0, GDAL 3.3.3, PROJ 8.1.1
  Loading required package: survey
  Loading required package: grid
  Loading required package: Matrix
  Loading required package: survival
  
  Attaching package: 'survey'
  
  The following object is masked from 'package:graphics':
  
      dotchart
  
  spsurvey version 5.0.0 introduced significant changes to the inputs and outputs of many functions. Please review the updated materials, vignettes, and documentation by visiting 
   https://cran.r-project.org/package=spsurvey
  > 
  > test_check("spsurvey")
  == Failed tests ================================================================
  -- Error (test-sp_balance.R:17:5): sp_balance works unstrat --------------------
  Error in `st_make_valid.sfc(st_geometry(x))`: package lwgeom required, please install it first
  Backtrace:
       x
    1. \-spsurvey::sp_balance(eqprob$sites_base, NE_Lakes) test-sp_balance.R:17:4
    2.   \-base::lapply(...)
    3.     \-spsurvey:::FUN(X[[i]], ...)
    4.       \-spsurvey:::calculate_sp_balance(...)
    5.         +-base::suppressWarnings(...)
    6.         | \-base::withCallingHandlers(...)
    7.         +-sf::st_intersection(...)
    8.         +-sf::st_make_valid(sframe_split)
    9.         \-sf:::st_make_valid.sf(sframe_split)
   10.           +-sf::st_set_geometry(x, st_make_valid(st_geometry(x)))
   11.           +-sf::st_make_valid(st_geometry(x))
   12.           \-sf:::st_make_valid.sfc(st_geometry(x))
  -- Error (test-sp_balance.R:33:5): sp_balance works unstrat custom ip ----------
  Error in `st_make_valid.sfc(st_geometry(x))`: package lwgeom required, please install it first
  Backtrace:
       x
    1. \-spsurvey::sp_balance(eqprob$sites_base, NE_Lakes, ip = "ip") test-sp_balance.R:33:4
    2.   \-base::lapply(...)
    3.     \-spsurvey:::FUN(X[[i]], ...)
    4.       \-spsurvey:::calculate_sp_balance(...)
    5.         +-base::suppressWarnings(...)
    6.         | \-base::withCallingHandlers(...)
    7.         +-sf::st_intersection(...)
    8.         +-sf::st_make_valid(sframe_split)
    9.         \-sf:::st_make_valid.sf(sframe_split)
   10.           +-sf::st_set_geometry(x, st_make_valid(st_geometry(x)))
   11.           +-sf::st_make_valid(st_geometry(x))
   12.           \-sf:::st_make_valid.sfc(st_geometry(x))
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 1214 ]
  Error: Test failures
  Execution halted