- using R Under development (unstable) (2026-03-06 r89561)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 22.1.0 (https://github.com/llvm/llvm-project 4434dabb69916856b824f68a64b029c67175e532)
flang version 22.1.0 (https://github.com/llvm/llvm-project 4434dabb69916856b824f68a64b029c67175e532)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
* current time: 2026-03-07 09:20:08 UTC
- using option ‘--no-stop-on-test-error’
- checking for file ‘kantorovich/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘kantorovich’ version ‘3.2.0’
- 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 ‘kantorovich’ can be installed ... [15s/26s] WARNING
Found the following significant warnings:
Warning: replacing previous import ‘CVXR::outer’ by ‘gmp::outer’ when loading ‘kantorovich’
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... NOTE
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘kantorovich_ompr.R’
- 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 ... [21s/37s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [7s/12s] ERROR
Running examples in ‘kantorovich-Ex.R’ failed
The error most likely occurred in:
> ### Name: kantorovich_CVX
> ### Title: Computes Kantorovich distance with CVX
> ### Aliases: kantorovich_CVX
>
> ### ** Examples
>
> x <- c(1.5, 2, -3)
> mu <- c(1/7, 2/7, 4/7)
> y <- c(4, 3.5, 0, -2)
> nu <- c(1/4, 1/4, 1/4, 1/4)
> M <- outer(x, y, FUN = function(x, y) abs(x - y))
> kantorovich_CVX(mu, nu, dist = M)
Error in `method(solve_via_data, CVXR::ECOS_Solver)`:
! Package ECOSolveR is required but not installed.
Backtrace:
▆
1. └─kantorovich::kantorovich_CVX(mu, nu, dist = M)
2. └─CVXR::psolve(problem, solver = solver, ...)
3. └─CVXR::solve_via_data(...)
4. ├─S7::S7_dispatch()
5. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...)
6. └─CVXR::solve_via_data(...)
7. ├─S7::S7_dispatch()
8. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...)
9. └─cli::cli_abort("Package {.pkg ECOSolveR} is required but not installed.")
10. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [13s/25s] ERROR
Running ‘testthat.R’ [12s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(kantorovich)
Warning message:
replacing previous import 'CVXR::outer' by 'gmp::outer' when loading 'kantorovich'
> library(gmp)
Attaching package: 'gmp'
The following objects are masked from 'package:base':
%*%, apply, crossprod, matrix, tcrossprod
>
> test_check("kantorovich")
Saving _problems/test-CVX-6.R
Saving _problems/test-CVX-16.R
Saving _problems/test-CVX-37.R
[ FAIL 3 | WARN 0 | SKIP 0 | PASS 130 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-CVX.R:6:3'): kantorovich_CVX default distance ──────────────────
Error in ``method(solve_via_data, CVXR::ECOS_Solver)`(x = <object>, data = list(c = c(0, 1, 1, 1, 0, 1, 1, 1, 0), A = new("dgCMatrix", i = c(0L, 3L, 6L, 0L, 4L, 7L, 0L, 5L, 8L, 1L, 3L, 9L, 1L, 4L, 10L, 1L, 5L, 11L, 2L, 3L, 12L, 2L, 4L, 13L, 2L, 5L, 14L), p = c(0L, 3L, 6L, 9L, 12L, 15L, 18L, 21L, 24L, 27L), Dim = c(15L, 9L), Dimnames = list(NULL, NULL), x = c(1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1), factors = list()), b = c(0.142857142857143, 0.285714285714286, 0.571428571428571, 0.25, 0.25, 0.5, 0, 0, 0, 0, 0, 0, 0, 0, 0), dims = <object>, bool_idx = integer(0), int_idx = integer(0)), warm_start = FALSE, verbose = FALSE, solver_opts = list(), ...)`: Package ECOSolveR is required but not installed.
Backtrace:
▆
1. └─kantorovich::kantorovich_CVX(mu, nu, dist = 1 - diag(3L)) at test-CVX.R:6:3
2. └─CVXR::psolve(problem, solver = solver, ...)
3. └─CVXR::solve_via_data(...)
4. ├─S7::S7_dispatch()
5. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...)
6. └─CVXR::solve_via_data(...)
7. ├─S7::S7_dispatch()
8. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...)
9. └─cli::cli_abort("Package {.pkg ECOSolveR} is required but not installed.")
10. └─rlang::abort(...)
── Error ('test-CVX.R:16:3'): kantorovich_CVX - specified distance ─────────────
Error in ``method(solve_via_data, CVXR::ECOS_Solver)`(x = <object>, data = list(c = c(0, 0.333333333333333, 0.666666666666667, 1, 0.333333333333333, 0, 0.333333333333333, 0.666666666666667, 0.666666666666667, 0.333333333333333, 0, 0.333333333333333, 1, 0.666666666666667, 0.333333333333333, 0), A = new("dgCMatrix", i = c(0L, 4L, 8L, 0L, 5L, 9L, 0L, 6L, 10L, 0L, 7L, 11L, 1L, 4L, 12L, 1L, 5L, 13L, 1L, 6L, 14L, 1L, 7L, 15L, 2L, 4L, 16L, 2L, 5L, 17L, 2L, 6L, 18L, 2L, 7L, 19L, 3L, 4L, 20L, 3L, 5L, 21L, 3L, 6L, 22L, 3L, 7L, 23L), p = c(0L, 3L, 6L, 9L, 12L, 15L, 18L, 21L, 24L, 27L, 30L, 33L, 36L, 39L, 42L, 45L, 48L), Dim = c(24L, 16L), Dimnames = list(NULL, NULL), x = c(1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1), factors = list()), b = c(0.25, 0.75, 0, 0, 0, 0.5, 0.5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), dims = <object>, bool_idx = integer(0), int_idx = integer(0)), warm_start = FALSE, verbose = FALSE, solver_opts = list(), ...)`: Package ECOSolveR is required but not installed.
Backtrace:
▆
1. └─kantorovich::kantorovich_CVX(mu, nu, dist = dist) at test-CVX.R:16:3
2. └─CVXR::psolve(problem, solver = solver, ...)
3. └─CVXR::solve_via_data(...)
4. ├─S7::S7_dispatch()
5. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...)
6. └─CVXR::solve_via_data(...)
7. ├─S7::S7_dispatch()
8. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...)
9. └─cli::cli_abort("Package {.pkg ECOSolveR} is required but not installed.")
10. └─rlang::abort(...)
── Error ('test-CVX.R:37:3'): kantorovich_CVX - nonsymmetric dist ──────────────
Error in ``method(solve_via_data, CVXR::ECOS_Solver)`(x = <object>, data = list(c = c(0, 1, 3, 1, 0, 4, 2, 4, 0), A = new("dgCMatrix", i = c(0L, 3L, 6L, 0L, 4L, 7L, 0L, 5L, 8L, 1L, 3L, 9L, 1L, 4L, 10L, 1L, 5L, 11L, 2L, 3L, 12L, 2L, 4L, 13L, 2L, 5L, 14L), p = c(0L, 3L, 6L, 9L, 12L, 15L, 18L, 21L, 24L, 27L), Dim = c(15L, 9L), Dimnames = list(NULL, NULL), x = c(1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, -1), factors = list()), b = c(0.142857142857143, 0.285714285714286, 0.571428571428571, 0.333333333333333, 0.111111111111111, 0.555555555555556, 0, 0, 0, 0, 0, 0, 0, 0, 0), dims = <object>, bool_idx = integer(0), int_idx = integer(0)), warm_start = FALSE, verbose = FALSE, solver_opts = list(), ...)`: Package ECOSolveR is required but not installed.
Backtrace:
▆
1. └─kantorovich::kantorovich_CVX(mu, nu, dist = D) at test-CVX.R:37:3
2. └─CVXR::psolve(problem, solver = solver, ...)
3. └─CVXR::solve_via_data(...)
4. ├─S7::S7_dispatch()
5. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...)
6. └─CVXR::solve_via_data(...)
7. ├─S7::S7_dispatch()
8. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...)
9. └─cli::cli_abort("Package {.pkg ECOSolveR} is required but not installed.")
10. └─rlang::abort(...)
[ FAIL 3 | WARN 0 | SKIP 0 | PASS 130 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... ERROR
Error(s) in re-building vignettes:
--- re-building ‘kantorovich.Rmd’ using rmarkdown
Quitting from kantorovich.Rmd:176-189 [unnamed-chunk-14]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `method(solve_via_data, CVXR::ECOS_Solver)`:
! Package ECOSolveR is required but not installed.
---
Backtrace:
▆
1. └─kantorovich::kantorovich_CVX(mu, nu, dist = M)
2. └─CVXR::psolve(problem, solver = solver, ...)
3. └─CVXR::solve_via_data(...)
4. ├─S7::S7_dispatch()
5. └─CVXR (local) `method(solve_via_data, CVXR::SolvingChain)`(...)
6. └─CVXR::solve_via_data(...)
7. ├─S7::S7_dispatch()
8. └─CVXR (local) `method(solve_via_data, CVXR::ECOS_Solver)`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'kantorovich.Rmd' failed with diagnostics:
Package ECOSolveR is required but not installed.
--- failed re-building ‘kantorovich.Rmd’
SUMMARY: processing the following file failed:
‘kantorovich.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... 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: 3 ERRORs, 1 WARNING, 1 NOTE