* using log directory 'd:/Rcompile/CRANpkg/local/4.4/regional.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 'regional/DESCRIPTION' ... OK * this is package 'regional' version '0.4.4' * 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 'regional' 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 examples ... [1s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [16s] ERROR Running 'testthat.R' [16s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(regional) > library(terra) terra 1.8.86 Attaching package: 'terra' The following objects are masked from 'package:testthat': compare, describe > if (requireNamespace("sf", quietly = TRUE)) { + library(sf) + volcano = rast(system.file("raster/volcano.tif", package = "regional")) + vr = read_sf(system.file("regions/volcano_regions.gpkg", package = "regional")) + + ortho = rast(system.file("raster/ortho.tif", package = "supercells")) + vo = supercells::supercells(ortho, k = 1000, compactness = 1) + + test_check("regional") + } Linking to GEOS 3.13.0, GDAL 3.10.1, PROJ 9.5.1; sf_use_s2() is TRUE Saving _problems/test-reg_distinction-5.R Metric: 'euclidean' with unit: 'log'; comparing: 0 vectors Saving _problems/test-reg_inhomogeneity-2.R Saving _problems/test-reg_isolation-5.R [ FAIL 3 | WARN 27 | SKIP 0 | PASS 2 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-reg_distinction.R:5:3'): reg_distinction works ─────────────── Expected `mean(reg_dis)` to equal 1.95. Differences: `actual`: NaN `expected`: 1.9 ── Error ('test-reg_inhomogeneity.R:2:1'): (code run outside of `test_that()`) ── Error in `dimnames(x) <- dn`: length of 'dimnames' [2] not equal to array extent Backtrace: ▆ 1. └─regional::reg_inhomogeneity(vr[1:2, ], volcano) at test-reg_inhomogeneity.R:2:1 2. ├─base::mean(...) 3. └─regional:::universal_distance(vals_i, dist_fun = dist_fun, ...) 4. └─philentropy::distance(...) 5. └─base::`colnames<-`(`*tmp*`, value = paste0("v", seq_len(ncols))) ── Failure ('test-reg_isolation.R:5:3'): reg_isolation works ─────────────────── Expected `mean(reg_iso)` to equal 1.95. Differences: `actual`: NaN `expected`: 1.9 [ FAIL 3 | WARN 27 | SKIP 0 | PASS 2 ] Error: ! Test failures. Execution halted * checking PDF version of manual ... [18s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 1 ERROR