- using R Under development (unstable) (2026-03-08 r89578)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7)
GNU Fortran (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
* current time: 2026-03-10 22:43:59 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 ... [16s/41s] 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 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 ... [5s/12s] OK
- checking whether the package can be loaded with stated dependencies ... [4s/12s] OK
- checking whether the package can be unloaded cleanly ... [4s/11s] OK
- checking whether the namespace can be loaded with stated dependencies ... [4s/12s] OK
- checking whether the namespace can be unloaded cleanly ... [4s/10s] OK
- checking loading without being on the library search path ... [5s/11s] 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/62s] 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/20s] 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 kanto$status : $ operator is invalid for atomic vectors
Calls: kantorovich_CVX
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [15s/40s] ERROR
Running ‘testthat.R’ [14s/39s]
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 `kanto$status`: $ operator is invalid for atomic vectors
Backtrace:
▆
1. └─kantorovich::kantorovich_CVX(mu, nu, dist = 1 - diag(3L)) at test-CVX.R:6:3
── Error ('test-CVX.R:16:3'): kantorovich_CVX - specified distance ─────────────
Error in `kanto$status`: $ operator is invalid for atomic vectors
Backtrace:
▆
1. └─kantorovich::kantorovich_CVX(mu, nu, dist = dist) at test-CVX.R:16:3
── Error ('test-CVX.R:37:3'): kantorovich_CVX - nonsymmetric dist ──────────────
Error in `kanto$status`: $ operator is invalid for atomic vectors
Backtrace:
▆
1. └─kantorovich::kantorovich_CVX(mu, nu, dist = D) at test-CVX.R:37:3
[ 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 ... [23s/59s] 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 `kanto$status`:
! $ operator is invalid for atomic vectors
---
Backtrace:
▆
1. └─kantorovich::kantorovich_CVX(mu, nu, dist = M)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'kantorovich.Rmd' failed with diagnostics:
$ operator is invalid for atomic vectors
--- 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 ... [7s/18s] 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