* using log directory 'd:/Rcompile/CRANpkg/local/4.5/distances.Rcheck' * using R version 4.5.2 (2025-10-31 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'distances/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'distances' version '0.1.12' * 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 'distances' can be installed ... OK * used C compiler: 'gcc.exe (GCC) 14.3.0' * used C++ compiler: 'g++.exe (GCC) 14.3.0' * 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 ... [0s] 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 ... [2s] OK * checking Rd files ... [0s] 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 line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking include directives in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking examples ... [0s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [4s] ERROR Running 'testthat.R' [4s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(distances) > > test_check("distances") Saving _problems/test_input_check-47.R Saving _problems/test_input_check-70.R Saving _problems/test_input_check-86.R Saving _problems/test_input_check-123.R Saving _problems/test_input_check-164.R Saving _problems/test_input_check-251.R Saving _problems/test_input_check-275.R Saving _problems/test_input_check-302.R [ FAIL 8 | WARN 0 | SKIP 0 | PASS 419 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_input_check.R:45:3'): `new_error` & `new_warning` make warnings and errors. ── Error in `expect_error(t_new_error("This is an error."), class = c("error", "condition"), regexp = "This is an error.")`: `class` must be a single string or `NULL`, not a character vector. Backtrace: ▆ 1. └─testthat::expect_error(class = c("error", "condition")) at test_input_check.R:45:3 2. └─testthat:::check_string(class, allow_null = TRUE) 3. └─testthat:::stop_input_type(...) 4. └─rlang::abort(message, ..., call = call, arg = arg) ── Error ('test_input_check.R:68:3'): `ensure_distances` checks input. ───────── Error in `expect_error(t_ensure_distances(t_distances = "a"), class = c("error", "condition"), regexp = "`t_distances` is not a `distances` object.")`: `class` must be a single string or `NULL`, not a character vector. Backtrace: ▆ 1. └─testthat::expect_error(class = c("error", "condition")) at test_input_check.R:68:3 2. └─testthat:::check_string(class, allow_null = TRUE) 3. └─testthat:::stop_input_type(...) 4. └─rlang::abort(message, ..., call = call, arg = arg) ── Error ('test_input_check.R:85:3'): `coerce_args` checks input. ────────────── Error in `expect_error(t_coerce_args(t_choices = 1L), class = c("error", "condition"))`: `class` must be a single string or `NULL`, not a character vector. Backtrace: ▆ 1. └─testthat::expect_error(class = c("error", "condition")) at test_input_check.R:85:3 2. └─testthat:::check_string(class, allow_null = TRUE) 3. └─testthat:::stop_input_type(...) 4. └─rlang::abort(message, ..., call = call, arg = arg) ── Error ('test_input_check.R:121:3'): `coerce_character` checks input. ──────── Error in `expect_error(t_coerce_character(t_req_length = 8), class = c("error", "condition"), regexp = "`t_x` is not of length `t_req_length`.")`: `class` must be a single string or `NULL`, not a character vector. Backtrace: ▆ 1. └─testthat::expect_error(class = c("error", "condition")) at test_input_check.R:121:3 2. └─testthat:::check_string(class, allow_null = TRUE) 3. └─testthat:::stop_input_type(...) 4. └─rlang::abort(message, ..., call = call, arg = arg) ── Error ('test_input_check.R:162:3'): `coerce_distance_data` checks input. ──── Error in `expect_error(t_coerce_distance_data(t_data = dist(1:10)), class = c("error", "condition"), regexp = "`t_data` must be vector, matrix or data frame.")`: `class` must be a single string or `NULL`, not a character vector. Backtrace: ▆ 1. └─testthat::expect_error(class = c("error", "condition")) at test_input_check.R:162:3 2. └─testthat:::check_string(class, allow_null = TRUE) 3. └─testthat:::stop_input_type(...) 4. └─rlang::abort(message, ..., call = call, arg = arg) ── Error ('test_input_check.R:249:3'): `coerce_double` checks input. ─────────── Error in `expect_error(t_coerce_double(t_x = letters[1:10]), class = c("error", "condition"), regexp = "`t_x` must be double or NULL.")`: `class` must be a single string or `NULL`, not a character vector. Backtrace: ▆ 1. └─testthat::expect_error(class = c("error", "condition")) at test_input_check.R:249:3 2. └─testthat:::check_string(class, allow_null = TRUE) 3. └─testthat:::stop_input_type(...) 4. └─rlang::abort(message, ..., call = call, arg = arg) ── Error ('test_input_check.R:273:3'): `coerce_integer` checks input. ────────── Error in `expect_error(t_coerce_integer(t_x = letters[1:10]), class = c("error", "condition"), regexp = "`t_x` must be integer or NULL.")`: `class` must be a single string or `NULL`, not a character vector. Backtrace: ▆ 1. └─testthat::expect_error(class = c("error", "condition")) at test_input_check.R:273:3 2. └─testthat:::check_string(class, allow_null = TRUE) 3. └─testthat:::stop_input_type(...) 4. └─rlang::abort(message, ..., call = call, arg = arg) ── Error ('test_input_check.R:300:3'): `coerce_norm_matrix` checks input. ────── Error in `expect_error(t_coerce_norm_matrix(t_mat = dist(1:4)), class = c("error", "condition"), regexp = "`t_mat` must be matrix, data.frame or vector.")`: `class` must be a single string or `NULL`, not a character vector. Backtrace: ▆ 1. └─testthat::expect_error(class = c("error", "condition")) at test_input_check.R:300:3 2. └─testthat:::check_string(class, allow_null = TRUE) 3. └─testthat:::stop_input_type(...) 4. └─rlang::abort(message, ..., call = call, arg = arg) [ FAIL 8 | WARN 0 | SKIP 0 | PASS 419 ] Error: ! Test failures. Execution halted * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 1 ERROR