Running 'testthat.R' [10s]
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