* using log directory 'd:/Rcompile/CRANpkg/local/4.4/flowcluster.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'flowcluster/DESCRIPTION' ... OK * this is package 'flowcluster' version '0.2.1' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'flowcluster' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [0s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [3s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... [1s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [13s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [25s] ERROR 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 * checking PDF version of manual ... [18s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 1 ERROR