Running 'testthat.R' [20s/23s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(bcmaps)
  Loading required package: sf
  Linking to GEOS 3.11.0, GDAL 3.5.1, PROJ 9.0.1; sf_use_s2() is TRUE
  > 
  > test_check("bcmaps")
  [ FAIL 4 | WARN 0 | SKIP 17 | PASS 82 ]
  
  == Skipped tests ===============================================================
  * On CRAN (17)
  
  == Failed tests ================================================================
  -- Failure (test-get_poly_attribute.R:17:5): works with numbers ----------------
  get_poly_attribute(unioned_spdf$union_df, "a", sum) not equivalent to c(1, 2, 3).
  3/3 mismatches (average diff: 1.33)
  [1] 2 - 1 ==  1
  [2] 3 - 2 ==  1
  [3] 1 - 3 == -2
  -- Failure (test-get_poly_attribute.R:21:5): works with factors ----------------
  get_poly_attribute(unioned_spdf$union_df, "c", max) not equal to factor(...).
  2 string mismatches
  -- Failure (test-self_union.R:33:5): works with SpatialPolygons ----------------
  self_union(spp)@data not equal to `spp_out_data`.
  Attributes: < Component "row.names": Modes: numeric, character >
  Attributes: < Component "row.names": target is numeric, current is character >
  Component "union_count": Mean relative difference: 0.6666667
  Component "union_ids": names for current but not for target
  Component "union_ids": Component 1: Mean relative difference: 0.5
  Component "union_ids": Component 2: Numeric: lengths (2, 1) differ
  Component "union_ids": Component 3: Numeric: lengths (1, 2) differ
  -- Failure (test-self_union.R:39:5): works with SpatialPolygonsDataFrame -------
  self_union(spdf)@data not equal to `spdf_out_data`.
  Attributes: < Component "row.names": Modes: numeric, character >
  Attributes: < Component "row.names": target is numeric, current is character >
  Component "union_count": Mean relative difference: 0.6666667
  Component "union_ids": names for current but not for target
  Component "union_ids": Component 1: Mean relative difference: 0.5
  Component "union_ids": Component 2: Numeric: lengths (2, 1) differ
  Component "union_ids": Component 3: Numeric: lengths (1, 2) differ
  Component "union_df": names for current but not for target
  Component "union_df": Component 1: Attributes: < Component "row.names": Mean relative difference: 0.5 >
  ...
  
  [ FAIL 4 | WARN 0 | SKIP 17 | PASS 82 ]
  Error: Test failures
  Execution halted