Running ‘testthat.R’ [114s/114s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(spsurvey)
  Loading required package: sf
  Linking to GEOS 3.9.1, GDAL 2.4.4, PROJ 5.2.0
  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")
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  OGR: Corrupt data
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-grts.R:26:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(NE_Lakes, n_base = n_base, seltype = "equal") test-grts.R:26:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:50:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:50:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:74:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:74:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:90:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:90:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:117:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:117:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:144:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:144:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:170:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:170:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:185:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:185:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:213:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:213:2
   2.   ├─sf::st_coordinates(st_transform(sites_legacy, crs = 4326))
   3.   ├─sf::st_transform(sites_legacy, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_legacy, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:229:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:229:2
   2.   ├─sf::st_coordinates(st_transform(sites_legacy, crs = 4326))
   3.   ├─sf::st_transform(sites_legacy, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_legacy, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:260:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:260:2
   2.   ├─sf::st_coordinates(st_transform(sites_legacy, crs = 4326))
   3.   ├─sf::st_transform(sites_legacy, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_legacy, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:280:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:280:2
   2.   ├─sf::st_coordinates(st_transform(sites_legacy, crs = 4326))
   3.   ├─sf::st_transform(sites_legacy, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_legacy, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:303:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:303:2
   2.   ├─sf::st_coordinates(st_transform(sites_legacy, crs = 4326))
   3.   ├─sf::st_transform(sites_legacy, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_legacy, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:324:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:324:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::grtspts_mindis(...)
   5.         └─sf::st_distance(sites_base)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-grts.R:346:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:346:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:362:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:362:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:399:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:399:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:419:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:419:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-grts.R:442:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:442:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::replace_near(...)
   5.         └─sf::st_distance(sites, sframe)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-grts.R:458:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:458:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::replace_near(...)
   5.         └─sf::st_distance(sites, sframe)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-grts.R:486:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:486:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::replace_near(...)
   5.         └─sf::st_distance(sites, sframe)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-grts.R:506:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:506:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::replace_near(...)
   5.         └─sf::st_distance(sites, sframe)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-grts.R:530:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:530:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::replace_near(...)
   5.         └─sf::st_distance(sites, sframe)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-grts.R:552:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:552:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::replace_near(...)
   5.         └─sf::st_distance(sites, sframe)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-grts.R:584:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(Illinois_River, n_base = n_base, seltype = "equal") test-grts.R:584:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─sf::st_length(sftmp)
   5.         ├─base::isTRUE(st_is_longlat(x))
   6.         └─sf::st_is_longlat(x)
   7.           └─sf:::crs_parameters(crs)
   8.             └─sf:::CPL_crs_parameters(x)
  ── Error (test-grts.R:599:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:599:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─sf::st_length(sftmp)
   5.         ├─base::isTRUE(st_is_longlat(x))
   6.         └─sf::st_is_longlat(x)
   7.           └─sf:::crs_parameters(crs)
   8.             └─sf:::CPL_crs_parameters(x)
  ── Error (test-grts.R:627:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:627:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─sf::st_length(sftmp)
   5.         ├─base::isTRUE(st_is_longlat(x))
   6.         └─sf::st_is_longlat(x)
   7.           └─sf:::crs_parameters(crs)
   8.             └─sf:::CPL_crs_parameters(x)
  ── Error (test-grts.R:643:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(...) test-grts.R:643:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─sf::st_length(sftmp)
   5.         ├─base::isTRUE(st_is_longlat(x))
   6.         └─sf::st_is_longlat(x)
   7.           └─sf:::crs_parameters(crs)
   8.             └─sf:::CPL_crs_parameters(x)
  ── Error (test-grts.R:689:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
       █
    1. └─spsurvey::grts(Lake_Ontario, n_base = n_base, seltype = "equal") test-grts.R:689:2
    2.   └─base::lapply(...)
    3.     └─spsurvey:::FUN(X[[i]], ...)
    4.       ├─sf::st_area(sftmp)
    5.       └─sf:::st_area.sf(sftmp)
    6.         ├─sf::st_area(st_geometry(x), ...)
    7.         └─sf:::st_area.sfc(st_geometry(x), ...)
    8.           ├─base::isTRUE(st_is_longlat(x))
    9.           └─sf::st_is_longlat(x)
   10.             └─sf:::crs_parameters(crs)
   11.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-grts.R:704:3): algorithm executes ───────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
       █
    1. └─spsurvey::grts(...) test-grts.R:704:2
    2.   └─base::lapply(...)
    3.     └─spsurvey:::FUN(X[[i]], ...)
    4.       ├─sf::st_area(sftmp)
    5.       └─sf:::st_area.sf(sftmp)
    6.         ├─sf::st_area(st_geometry(x), ...)
    7.         └─sf:::st_area.sfc(st_geometry(x), ...)
    8.           ├─base::isTRUE(st_is_longlat(x))
    9.           └─sf::st_is_longlat(x)
   10.             └─sf:::crs_parameters(crs)
   11.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-irs.R:26:3): algorithm executes ─────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(NE_Lakes, n_base = n_base, seltype = "equal") test-irs.R:26:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:50:3): algorithm executes ─────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(NE_Lakes, n_base = n_base, seltype = "equal", stratum_var = "ELEV_CAT") test-irs.R:50:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:74:3): algorithm executes ─────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:74:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:90:3): algorithm executes ─────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:90:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:117:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:117:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:144:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:144:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:170:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:170:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:185:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:185:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:213:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(NE_Lakes, n_base = n_base, seltype = "equal", legacy_sites = NE_Lakes_Legacy) test-irs.R:213:2
   2.   ├─sf::st_coordinates(st_transform(sites_legacy, crs = 4326))
   3.   ├─sf::st_transform(sites_legacy, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_legacy, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:229:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:229:2
   2.   ├─sf::st_coordinates(st_transform(sites_legacy, crs = 4326))
   3.   ├─sf::st_transform(sites_legacy, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_legacy, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:260:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:260:2
   2.   ├─sf::st_coordinates(st_transform(sites_legacy, crs = 4326))
   3.   ├─sf::st_transform(sites_legacy, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_legacy, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:280:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:280:2
   2.   ├─sf::st_coordinates(st_transform(sites_legacy, crs = 4326))
   3.   ├─sf::st_transform(sites_legacy, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_legacy, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:303:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:303:2
   2.   ├─sf::st_coordinates(st_transform(sites_legacy, crs = 4326))
   3.   ├─sf::st_transform(sites_legacy, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_legacy, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:324:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(NE_Lakes, n_base = n_base, seltype = "equal", mindis = mindis) test-irs.R:324:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::grtspts_mindis(...)
   5.         └─sf::st_distance(sites_base)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-irs.R:346:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(NE_Lakes, n_base = n_base, seltype = "equal", n_over = n_over) test-irs.R:346:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:362:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:362:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:399:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:399:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:419:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:419:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-irs.R:442:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(NE_Lakes, n_base = n_base, seltype = "equal", n_near = n_near) test-irs.R:442:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::replace_near(...)
   5.         └─sf::st_distance(sites, sframe)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-irs.R:458:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:458:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::replace_near(...)
   5.         └─sf::st_distance(sites, sframe)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-irs.R:486:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:486:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::replace_near(...)
   5.         └─sf::st_distance(sites, sframe)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-irs.R:506:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:506:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::replace_near(...)
   5.         └─sf::st_distance(sites, sframe)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-irs.R:530:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:530:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::replace_near(...)
   5.         └─sf::st_distance(sites, sframe)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-irs.R:552:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:552:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::replace_near(...)
   5.         └─sf::st_distance(sites, sframe)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-irs.R:584:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(Illinois_River, n_base = n_base, seltype = "equal") test-irs.R:584:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─sf::st_length(sftmp)
   5.         ├─base::isTRUE(st_is_longlat(x))
   6.         └─sf::st_is_longlat(x)
   7.           └─sf:::crs_parameters(crs)
   8.             └─sf:::CPL_crs_parameters(x)
  ── Error (test-irs.R:599:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:599:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─sf::st_length(sftmp)
   5.         ├─base::isTRUE(st_is_longlat(x))
   6.         └─sf::st_is_longlat(x)
   7.           └─sf:::crs_parameters(crs)
   8.             └─sf:::CPL_crs_parameters(x)
  ── Error (test-irs.R:627:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:627:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─sf::st_length(sftmp)
   5.         ├─base::isTRUE(st_is_longlat(x))
   6.         └─sf::st_is_longlat(x)
   7.           └─sf:::crs_parameters(crs)
   8.             └─sf:::CPL_crs_parameters(x)
  ── Error (test-irs.R:643:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::irs(...) test-irs.R:643:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─sf::st_length(sftmp)
   5.         ├─base::isTRUE(st_is_longlat(x))
   6.         └─sf::st_is_longlat(x)
   7.           └─sf:::crs_parameters(crs)
   8.             └─sf:::CPL_crs_parameters(x)
  ── Error (test-irs.R:689:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
       █
    1. └─spsurvey::irs(Lake_Ontario, n_base = n_base, seltype = "equal") test-irs.R:689:2
    2.   └─base::lapply(...)
    3.     └─spsurvey:::FUN(X[[i]], ...)
    4.       ├─sf::st_area(sftmp)
    5.       └─sf:::st_area.sf(sftmp)
    6.         ├─sf::st_area(st_geometry(x), ...)
    7.         └─sf:::st_area.sfc(st_geometry(x), ...)
    8.           ├─base::isTRUE(st_is_longlat(x))
    9.           └─sf::st_is_longlat(x)
   10.             └─sf:::crs_parameters(crs)
   11.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-irs.R:704:3): algorithm executes ────────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
       █
    1. └─spsurvey::irs(...) test-irs.R:704:2
    2.   └─base::lapply(...)
    3.     └─spsurvey:::FUN(X[[i]], ...)
    4.       ├─sf::st_area(sftmp)
    5.       └─sf:::st_area.sf(sftmp)
    6.         ├─sf::st_area(st_geometry(x), ...)
    7.         └─sf:::st_area.sfc(st_geometry(x), ...)
    8.           ├─base::isTRUE(st_is_longlat(x))
    9.           └─sf::st_is_longlat(x)
   10.             └─sf:::crs_parameters(crs)
   11.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-sp_balance.R:8:3): sp_balance works unstrat ─────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(NE_Lakes, n_base = n_base) test-sp_balance.R:8:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-sp_balance.R:24:3): sp_balance works unstrat custom ip ──────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(NE_Lakes, n_base = n_base) test-sp_balance.R:24:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Failure (test-sp_plot.R:12:3): one sided formulas work ──────────────────────
  `sp_plot(NE_Lakes, formula = ~1)` threw an error.
  Message: OGR error
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(sp_plot(NE_Lakes, formula = ~1), NA) test-sp_plot.R:12:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spsurvey::sp_plot(NE_Lakes, formula = ~1)
    7. └─spsurvey:::sp_plot.default(NE_Lakes, formula = ~1)
    8.   ├─base::do.call("plot", c(list(st_geometry(object)), dot_list))
    9.   ├─base::plot(...)
   10.   └─sf:::plot.sfc_POINT(...)
   11.     └─sf::plot_sf(x, ...)
   12.       ├─base::ifelse(...)
   13.       ├─base::isTRUE(st_is_longlat(x))
   14.       └─sf::st_is_longlat(x)
   15.         └─sf:::crs_parameters(crs)
   16.           └─sf:::CPL_crs_parameters(x)
  ── Failure (test-sp_plot.R:13:3): one sided formulas work ──────────────────────
  `sp_plot(NE_Lakes, formula = ~ELEV_CAT)` threw an error.
  Message: OGR error
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-sp_plot.R:13:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spsurvey::sp_plot(NE_Lakes, formula = ~ELEV_CAT)
    7. └─spsurvey:::sp_plot.default(NE_Lakes, formula = ~ELEV_CAT)
    8.   └─base::lapply(...)
    9.     └─spsurvey:::FUN(X[[i]], ...)
   10.       ├─base::do.call("plot", c(list(varsf[a]), list_args))
   11.       ├─base::plot(...)
   12.       └─sf:::plot.sf(...)
   13.         └─sf::get_key_pos(x, ...)
   14.           ├─base::ifelse(...)
   15.           ├─base::isTRUE(st_is_longlat(x))
   16.           └─sf::st_is_longlat(x)
   17.             └─sf:::crs_parameters(crs)
   18.               └─sf:::CPL_crs_parameters(x)
  ── Failure (test-sp_plot.R:14:3): one sided formulas work ──────────────────────
  `sp_plot(NE_Lakes, formula = ~ELEV_CAT, fix_bbox = FALSE)` threw an error.
  Message: OGR error
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-sp_plot.R:14:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spsurvey::sp_plot(NE_Lakes, formula = ~ELEV_CAT, fix_bbox = FALSE)
    7. └─spsurvey:::sp_plot.default(NE_Lakes, formula = ~ELEV_CAT, fix_bbox = FALSE)
    8.   └─base::lapply(...)
    9.     └─spsurvey:::FUN(X[[i]], ...)
   10.       ├─base::do.call("plot", c(list(varsf[a]), list_args))
   11.       ├─base::plot(...)
   12.       └─sf:::plot.sf(...)
   13.         └─sf::get_key_pos(x, ...)
   14.           ├─base::ifelse(...)
   15.           ├─base::isTRUE(st_is_longlat(x))
   16.           └─sf::st_is_longlat(x)
   17.             └─sf:::crs_parameters(crs)
   18.               └─sf:::CPL_crs_parameters(x)
  ── Failure (test-sp_plot.R:15:3): one sided formulas work ──────────────────────
  `sp_plot(NE_Lakes, formula = ~ELEV_CAT:AREA_CAT)` threw an error.
  Message: OGR error
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-sp_plot.R:15:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spsurvey::sp_plot(NE_Lakes, formula = ~ELEV_CAT:AREA_CAT)
    7. └─spsurvey:::sp_plot.default(NE_Lakes, formula = ~ELEV_CAT:AREA_CAT)
    8.   └─base::lapply(...)
    9.     └─spsurvey:::FUN(X[[i]], ...)
   10.       ├─base::do.call("plot", c(list(varsf[a]), list_args))
   11.       ├─base::plot(...)
   12.       └─sf:::plot.sf(...)
   13.         └─sf::get_key_pos(x, ...)
   14.           ├─base::ifelse(...)
   15.           ├─base::isTRUE(st_is_longlat(x))
   16.           └─sf::st_is_longlat(x)
   17.             └─sf:::crs_parameters(crs)
   18.               └─sf:::CPL_crs_parameters(x)
  ── Failure (test-sp_plot.R:16:3): one sided formulas work ──────────────────────
  `sp_plot(NE_Lakes, formula = ~ELEV)` threw an error.
  Message: OGR error
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(sp_plot(NE_Lakes, formula = ~ELEV), NA) test-sp_plot.R:16:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spsurvey::sp_plot(NE_Lakes, formula = ~ELEV)
    7. └─spsurvey:::sp_plot.default(NE_Lakes, formula = ~ELEV)
    8.   └─base::lapply(...)
    9.     └─spsurvey:::FUN(X[[i]], ...)
   10.       ├─base::do.call("plot", c(list(varsf[a]), list_args))
   11.       ├─base::plot(...)
   12.       └─sf:::plot.sf(...)
   13.         └─sf::get_key_pos(x, ...)
   14.           ├─base::ifelse(...)
   15.           ├─base::isTRUE(st_is_longlat(x))
   16.           └─sf::st_is_longlat(x)
   17.             └─sf:::crs_parameters(crs)
   18.               └─sf:::CPL_crs_parameters(x)
  ── Failure (test-sp_plot.R:21:3): one sided formulas work ──────────────────────
  `sp_plot(NE_Lakes, formula = ~ELEV_CAT, pch = 19)` threw an error.
  Message: OGR error
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-sp_plot.R:21:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spsurvey::sp_plot(NE_Lakes, formula = ~ELEV_CAT, pch = 19)
    7. └─spsurvey:::sp_plot.default(NE_Lakes, formula = ~ELEV_CAT, pch = 19)
    8.   └─base::lapply(...)
    9.     └─spsurvey:::FUN(X[[i]], ...)
   10.       ├─base::do.call("plot", c(list(varsf[a]), list_args))
   11.       ├─base::plot(...)
   12.       └─sf:::plot.sf(...)
   13.         └─sf::get_key_pos(x, ...)
   14.           ├─base::ifelse(...)
   15.           ├─base::isTRUE(st_is_longlat(x))
   16.           └─sf::st_is_longlat(x)
   17.             └─sf:::crs_parameters(crs)
   18.               └─sf:::CPL_crs_parameters(x)
  ── Failure (test-sp_plot.R:23:3): one sided formulas work ──────────────────────
  `sp_plot(NE_Lakes, formula = ~ELEV_CAT, var_args = var_args)` threw an error.
  Message: OGR error
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-sp_plot.R:23:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spsurvey::sp_plot(NE_Lakes, formula = ~ELEV_CAT, var_args = var_args)
    7. └─spsurvey:::sp_plot.default(NE_Lakes, formula = ~ELEV_CAT, var_args = var_args)
    8.   └─base::lapply(...)
    9.     └─spsurvey:::FUN(X[[i]], ...)
   10.       ├─base::do.call("plot", c(list(varsf[a]), list_args))
   11.       ├─base::plot(...)
   12.       └─sf:::plot.sf(...)
   13.         └─sf::get_key_pos(x, ...)
   14.           ├─base::ifelse(...)
   15.           ├─base::isTRUE(st_is_longlat(x))
   16.           └─sf::st_is_longlat(x)
   17.             └─sf:::crs_parameters(crs)
   18.               └─sf:::CPL_crs_parameters(x)
  ── Failure (test-sp_plot.R:25:3): one sided formulas work ──────────────────────
  `sp_plot(NE_Lakes, formula = ~ELEV_CAT, varlevel_args = varlevel_args)` threw an error.
  Message: OGR error
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-sp_plot.R:25:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spsurvey::sp_plot(NE_Lakes, formula = ~ELEV_CAT, varlevel_args = varlevel_args)
    7. └─spsurvey:::sp_plot.default(NE_Lakes, formula = ~ELEV_CAT, varlevel_args = varlevel_args)
    8.   └─base::lapply(...)
    9.     └─spsurvey:::FUN(X[[i]], ...)
   10.       ├─base::do.call("plot", c(list(varsf[a]), list_args))
   11.       ├─base::plot(...)
   12.       └─sf:::plot.sf(...)
   13.         └─sf::get_key_pos(x, ...)
   14.           ├─base::ifelse(...)
   15.           ├─base::isTRUE(st_is_longlat(x))
   16.           └─sf::st_is_longlat(x)
   17.             └─sf:::crs_parameters(crs)
   18.               └─sf:::CPL_crs_parameters(x)
  ── Failure (test-sp_plot.R:27:3): one sided formulas work ──────────────────────
  `sp_plot(NE_Lakes, formula = ~ELEV_CAT, varlevel_args = varlevel_args)` threw an error.
  Message: OGR error
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-sp_plot.R:27:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spsurvey::sp_plot(NE_Lakes, formula = ~ELEV_CAT, varlevel_args = varlevel_args)
    7. └─spsurvey:::sp_plot.default(NE_Lakes, formula = ~ELEV_CAT, varlevel_args = varlevel_args)
    8.   └─base::lapply(...)
    9.     └─spsurvey:::FUN(X[[i]], ...)
   10.       ├─base::do.call("plot", c(list(varsf[a]), list_args))
   11.       ├─base::plot(...)
   12.       └─sf:::plot.sf(...)
   13.         └─sf::get_key_pos(x, ...)
   14.           ├─base::ifelse(...)
   15.           ├─base::isTRUE(st_is_longlat(x))
   16.           └─sf::st_is_longlat(x)
   17.             └─sf:::crs_parameters(crs)
   18.               └─sf:::CPL_crs_parameters(x)
  ── Failure (test-sp_plot.R:28:3): one sided formulas work ──────────────────────
  `sp_plot(...)` threw an error.
  Message: OGR error
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-sp_plot.R:28:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spsurvey::sp_plot(...)
    7. └─spsurvey:::sp_plot.default(...)
    8.   └─base::lapply(...)
    9.     └─spsurvey:::FUN(X[[i]], ...)
   10.       ├─base::do.call("plot", c(list(varsf[a]), list_args))
   11.       ├─base::plot(...)
   12.       └─sf:::plot.sf(...)
   13.         └─sf::get_key_pos(x, ...)
   14.           ├─base::ifelse(...)
   15.           ├─base::isTRUE(st_is_longlat(x))
   16.           └─sf::st_is_longlat(x)
   17.             └─sf:::crs_parameters(crs)
   18.               └─sf:::CPL_crs_parameters(x)
  ── Failure (test-sp_plot.R:41:3): two sided formulas work ──────────────────────
  `sp_plot(NE_Lakes, formula = ELEV ~ 1)` threw an error.
  Message: OGR error
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-sp_plot.R:41:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spsurvey::sp_plot(NE_Lakes, formula = ELEV ~ 1)
    7. └─spsurvey:::sp_plot.default(NE_Lakes, formula = ELEV ~ 1)
    8.   ├─base::do.call("plot", c(list(varsf[formlist$response]), dot_list))
    9.   ├─base::plot(...)
   10.   └─sf:::plot.sf(...)
   11.     └─sf::get_key_pos(x, ...)
   12.       ├─base::ifelse(...)
   13.       ├─base::isTRUE(st_is_longlat(x))
   14.       └─sf::st_is_longlat(x)
   15.         └─sf:::crs_parameters(crs)
   16.           └─sf:::CPL_crs_parameters(x)
  ── Failure (test-sp_plot.R:42:3): two sided formulas work ──────────────────────
  `sp_plot(NE_Lakes, formula = ELEV ~ AREA_CAT, onlyshow = "small")` threw an error.
  Message: OGR error
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-sp_plot.R:42:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spsurvey::sp_plot(NE_Lakes, formula = ELEV ~ AREA_CAT, onlyshow = "small")
    7. └─spsurvey:::sp_plot.default(...)
    8.   ├─base::do.call(...)
    9.   ├─base::plot(...)
   10.   └─sf:::plot.sf(...)
   11.     └─sf::get_key_pos(x, ...)
   12.       ├─base::ifelse(...)
   13.       ├─base::isTRUE(st_is_longlat(x))
   14.       └─sf::st_is_longlat(x)
   15.         └─sf:::crs_parameters(crs)
   16.           └─sf:::CPL_crs_parameters(x)
  ── Failure (test-sp_plot.R:48:3): two sided formulas work ──────────────────────
  `sp_plot(...)` threw an error.
  Message: OGR error
  Class:   Rcpp::exception/C++Error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-sp_plot.R:48:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spsurvey::sp_plot(...)
    7. └─spsurvey:::sp_plot.default(...)
    8.   ├─base::do.call(...)
    9.   ├─base::plot(...)
   10.   └─sf:::plot.sf(...)
   11.     └─sf::get_key_pos(x, ...)
   12.       ├─base::ifelse(...)
   13.       ├─base::isTRUE(st_is_longlat(x))
   14.       └─sf::st_is_longlat(x)
   15.         └─sf:::crs_parameters(crs)
   16.           └─sf:::CPL_crs_parameters(x)
  ── Error (test-sp_plot.R:57:1): (code run outside of `test_that()`) ────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(NE_Lakes, n_base = n_base) test-sp_plot.R:57:0
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-sp_rbind.R:8:3): sp_rbind works base ────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(NE_Lakes, n_base) test-sp_rbind.R:8:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-sp_rbind.R:17:3): sp_rbind works legacy ─────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(NE_Lakes, n_base = n_base, legacy_var = "LEGACY") test-sp_rbind.R:17:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-sp_rbind.R:27:3): sp_rbind works over ───────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(NE_Lakes, n_base = n_base, n_over = n_over) test-sp_rbind.R:27:2
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  ── Error (test-sp_rbind.R:37:3): sp_rbind works near ───────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(NE_Lakes, n_base = n_base, n_near = n_near) test-sp_rbind.R:37:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::replace_near(...)
   5.         └─sf::st_distance(sites, sframe)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-sp_rbind.R:47:3): sp_rbind works with siteuse ───────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_crs_parameters(x)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(NE_Lakes, n_base = n_base, n_near = n_near) test-sp_rbind.R:47:2
   2.   └─base::lapply(...)
   3.     └─spsurvey:::FUN(X[[i]], ...)
   4.       └─spsurvey:::replace_near(...)
   5.         └─sf::st_distance(sites, sframe)
   6.           ├─base::isTRUE(st_is_longlat(x))
   7.           └─sf::st_is_longlat(x)
   8.             └─sf:::crs_parameters(crs)
   9.               └─sf:::CPL_crs_parameters(x)
  ── Error (test-sp_summary.R:123:1): (code run outside of `test_that()`) ────────
  <Rcpp::exception/C++Error/error/condition>
  Error in `CPL_transform(x, crs, aoi, pipeline, reverse, desired_accuracy, 
      allow_ballpark)`: OGR error
  Backtrace:
      █
   1. └─spsurvey::grts(NE_Lakes, n_base = n_base) test-sp_summary.R:123:0
   2.   ├─sf::st_coordinates(st_transform(sites_base, crs = 4326))
   3.   ├─sf::st_transform(sites_base, crs = 4326)
   4.   └─sf:::st_transform.sf(sites_base, crs = 4326)
   5.     ├─sf::st_transform(st_geometry(x), crs, ...)
   6.     └─sf:::st_transform.sfc(st_geometry(x), crs, ...)
   7.       ├─sf::st_sfc(...)
   8.       ├─base::structure(...)
   9.       └─sf:::CPL_transform(...)
  
  [ FAIL 82 | WARN 0 | SKIP 0 | PASS 521 ]
  Error: Test failures
  Execution halted