Running 'testthat.R' [24s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(flowcluster)
  > 
  > test_check("flowcluster")
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  Linking to GEOS 3.13.0, GDAL 3.10.1, PROJ 9.5.1; sf_use_s2() is TRUE
  Flows remaining after filtering: 328 (32.8%)
  Extracting start and end coordinates from flow geometries...
  Adding x, y, u, v columns to flow data...
  Assigning unique flow IDs...
  Adding coordinates data back onto the unique pairs ...
  Adding coordinates data back onto the unique pairs ...
  Adding coordinates data back onto the unique pairs ...
  Adding coordinates data back onto the unique pairs ...
  Adding coordinates data back onto the unique pairs ...
  running dbscan for option 1 of 12 : eps = 1 | minpts = 0
  running dbscan for option 2 of 12 : eps = 1 | minpts = 50
  running dbscan for option 3 of 12 : eps = 1 | minpts = 100
  running dbscan for option 4 of 12 : eps = 1 | minpts = 150
  running dbscan for option 5 of 12 : eps = 3 | minpts = 0
  running dbscan for option 6 of 12 : eps = 3 | minpts = 50
  running dbscan for option 7 of 12 : eps = 3 | minpts = 100
  running dbscan for option 8 of 12 : eps = 3 | minpts = 150
  running dbscan for option 9 of 12 : eps = 5 | minpts = 0
  running dbscan for option 10 of 12 : eps = 5 | minpts = 50
  running dbscan for option 11 of 12 : eps = 5 | minpts = 100
  running dbscan for option 12 of 12 : eps = 5 | minpts = 150
  udunits database from D:/RCompile/CRANpkg/lib/4.4/units/share/udunits/udunits2.xml
  Linking to liblwgeom 3.0.0beta1 r16016, GEOS 3.13.0, PROJ 9.5.1
  
  Attaching package: 'lwgeom'
  
  The following objects are masked from 'package:sf':
  
      st_minimum_bounding_circle, st_perimeter
  
  Flows remaining after filtering: 854 (8.29%)
  Flows remaining after filtering: 0 (0%)
  Flows remaining after filtering: 854 (8.29%)
  Flows remaining after filtering: 0 (0%)
  Flows remaining after filtering: 854 (8.29%)
  Extracting start and end coordinates from flow geometries...
  Adding x, y, u, v columns to flow data...
  Assigning unique flow IDs...
  Flows remaining after filtering: 23 (11.5%)
  Extracting start and end coordinates from flow geometries...
  Adding x, y, u, v columns to flow data...
  Assigning unique flow IDs...
  Flows remaining after filtering: 23 (11.5%)
  Extracting start and end coordinates from flow geometries...
  Adding x, y, u, v columns to flow data...
  Assigning unique flow IDs...
  Flows remaining after filtering: 10 (10%)
  Extracting start and end coordinates from flow geometries...
  Adding x, y, u, v columns to flow data...
  Assigning unique flow IDs...
  [ FAIL 1 | WARN 132 | SKIP 0 | PASS 64 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-linestring_aggregation.R:21:3'): aggregate_clustered_flows: unweighted aggregation works ──
  all(sf::st_is_valid(agg)) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 1 | WARN 132 | SKIP 0 | PASS 64 ]
  Error: Test failures
  Execution halted