Running ‘testthat.R’ [1s/1s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(MOSAlloc)
  > 
  > test_check("MOSAlloc")
  Saving _problems/test-mosalloc-155.R
  
  ----------------------------------------------------------
  
   mosalloc running...
  
   TotalTime InnerTime ECOS_runtime ECOS_tsetup ECOS_tsolve
       0.002     0.001  0.000134499  1.1208e-05 0.000123291
   -> ECOSolveR statement: Optimal solution found!
  
  ----------------------------------------------------------
  
  Saving _problems/test-mosallocSTRS-41.R
  
  ----------------------------------------------------------
  
   mosalloc running...
  
   TotalTime InnerTime ECOS_runtime ECOS_tsetup ECOS_tsolve
       0.004     0.003  0.000138833  1.6708e-05 0.000122125
   -> ECOSolveR statement: Optimal solution found!
  
  ----------------------------------------------------------
  
  
  ----------------------------------------------------------
  
   mosalloc running...
  
   -> ECOSolveR statement: Optimal solution found!
  
  ----------------------------------------------------------
  
  
  ----------------------------------------------------------
  
   mosalloc running...
  
   TotalTime InnerTime ECOS_runtime ECOS_tsetup ECOS_tsolve
       0.001         0  0.000155583     1.5e-05 0.000140583
   -> ECOSolveR statement: Optimal solution found!
  
  ----------------------------------------------------------
  
  
  ----------------------------------------------------------
  
  
  ----------------------------------------------------------
  
   mosalloc running...
  
   TotalTime InnerTime ECOS_runtime ECOS_tsetup ECOS_tsolve
       0.001         0  0.000120582  1.3916e-05 0.000106666
   -> ECOSolveR statement: Optimal solution found!
  
  ----------------------------------------------------------
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 84 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-mosalloc.R:155:3'): mosalloc() works as expected for 2ST sampling ──
  Error in `mosalloc(D = D, d = d, C = C, c = c, l = l, u = u, opts = opts)`: d is not an utopian vector! d is too large.
  Backtrace:
      ▆
   1. └─MOSAlloc::mosalloc(...) at test-mosalloc.R:155:3
  ── Failure ('test-mosallocSTRS.R:40:3'): mosallocSTRS() works as expected for a simple univariate problem ──
  Expected `resWSS$objectives[[1]] == ...` to be identical to TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 84 ]
  Error:
  ! Test failures.
  Execution halted