- using R Under development (unstable) (2025-11-13 r89015)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘distances’ can be installed ... [33s/59s] OK
See the install log for details.
- used C compiler: ‘gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)’
- used C++ compiler: ‘g++ (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)’
- 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... 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 ... OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
- checking include directives in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking examples ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [8s/20s] ERROR
Running ‘testthat.R’ [8s/19s]
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 ... [7s/12s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR