• using R version 4.6.0 alpha (2026-03-26 r89725)
  • using platform: aarch64-apple-darwin23
  • R was compiled by     Apple clang version 17.0.0 (clang-1700.3.19.1)     GNU Fortran (GCC) 14.2.0
  • running under: macOS Sequoia 15.7.1
  • using session charset: UTF-8 * current time: 2026-03-27 16:28:31 UTC
  • 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 ... [2s/2s] 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 ... [1s/1s] OK
  • checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
  • checking whether the package can be unloaded cleanly ... [1s/1s] OK
  • checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
  • checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
  • checking loading without being on the library search path ... [1s/1s] 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/2s] OK
  • checking Rd files ... [0s/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 installed files from ‘inst/doc’ ... OK
  • checking files in ‘vignettes’ ... OK
  • checking examples ... [1s/1s] 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 ... [2s/2s] ERROR   Running ‘testthat.R’ [2s/2s] 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 ... [5s/5s] 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 ... [2s/2s] OK
  • DONE Status: 3 ERRORs, 1 WARNING, 1 NOTE
  • using check arguments '--no-clean-on-error '