Running 'testthat.R' [18s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(comparer)
  > 
  > test_check("comparer")
  Running 1, completed 0/3 Wed Mar 16 11:14:33 2022
  $a
  [1] 0.5160732
  
  Running 2, completed 1/3 Wed Mar 16 11:14:34 2022
  $a
  [1] -0.2256
  
  Running 3, completed 2/3 Wed Mar 16 11:14:34 2022
  $a
  [1] -0.7863137
  
  Running 4, completed 3/4 Wed Mar 16 11:14:35 2022
  $a
  [1] -0.2256
  
  Running 5, completed 4/5 Wed Mar 16 11:14:36 2022
  $a
  [1] -0.20772
  
  Running 6, completed 5/6 Wed Mar 16 11:14:36 2022
  $a
  [1] 0.004639368
  
  Running 1, completed 0/3 Wed Mar 16 11:14:37 2022
  $a
  [1] 0.3680614
  
  $b
  [1] 0.9858564
  
  Running 2, completed 1/3 Wed Mar 16 11:14:37 2022
  $a
  [1] -0.7545579
  
  $b
  [1] -0.8589146
  
  Running 3, completed 2/3 Wed Mar 16 11:14:37 2022
  $a
  [1] -0.3322757
  
  $b
  [1] 0.3233613
  
  Running 4, completed 3/6 Wed Mar 16 11:14:38 2022
  $a
  [1] -0.8507518
  
  $b
  [1] 0.01596594
  
  Running 5, completed 4/6 Wed Mar 16 11:14:38 2022
  $a
  [1] -0.1984552
  
  $b
  [1] -0.9681935
  
  Running 6, completed 5/6 Wed Mar 16 11:14:38 2022
  $a
  [1] -0.7492316
  
  $b
  [1] 0.8379602
  
  Error in summary.connection(connection) : invalid connection
  In addition: Warning message:
  In .Internal(gc(verbose, reset, full)) :
    closing unused connection 4 (<-CRANWIN2.fb05.statistik.uni-dortmund.de:11666)
  Running 1, completed 0/4 Wed Mar 16 11:14:45 2022
  $a
  [1] 1
  
  Completed all runs in 0.2 seconds 
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 241 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-test_hype.R:21:3): hype works ─────────────────────────────────
  `h1$add_EI(1)` threw an error.
  Message: non-finite value supplied by optim
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(h1$add_EI(1), NA) at test-test_hype.R:21:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─h1$add_EI(1)
    7. │ └─DiceOptim::max_EI(...)
    8. │   └─rgenoud::genoud(...)
    9. └─rgenoud `<fn>`(-0.225600044559455)
   10.   └─stats::optim(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 241 ]
  Error: Test failures
  Execution halted