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 Sun Sep 05 04:14:03 2021
  $a
  [1] 0.7618012
  
  Running 2, completed 1/3 Sun Sep 05 04:14:04 2021
  $a
  [1] -0.5391553
  
  Running 3, completed 2/3 Sun Sep 05 04:14:04 2021
  $a
  [1] 0.2404434
  
  Running 4, completed 3/4 Sun Sep 05 04:14:05 2021
  $a
  [1] -0.4921574
  
  Running 5, completed 4/5 Sun Sep 05 04:14:06 2021
  $a
  [1] 0.08465694
  
  Running 6, completed 5/6 Sun Sep 05 04:14:06 2021
  $a
  [1] -0.09054032
  
  Running 1, completed 0/3 Sun Sep 05 04:14:07 2021
  $a
  [1] 0.7570337
  
  $b
  [1] 0.02530363
  
  Running 2, completed 1/3 Sun Sep 05 04:14:07 2021
  $a
  [1] -0.3026771
  
  $b
  [1] -0.7455968
  
  Running 3, completed 2/3 Sun Sep 05 04:14:07 2021
  $a
  [1] -0.4186113
  
  $b
  [1] 0.8902052
  
  Running 4, completed 3/6 Sun Sep 05 04:14:08 2021
  $a
  [1] -0.2196307
  
  $b
  [1] 0.3736347
  
  Running 5, completed 4/6 Sun Sep 05 04:14:08 2021
  $a
  [1] -0.06267471
  
  $b
  [1] -0.5938704
  
  Running 6, completed 5/6 Sun Sep 05 04:14:08 2021
  $a
  [1] -0.8829834
  
  $b
  [1] 0.9934401
  
  Error in summary.connection(connection) : invalid connection
  In addition: Warning message:
  In .Internal(gc(verbose, reset, full)) :
    closing unused connection 4 (<-CRANwin.fb05.statistik.uni-dortmund.de:11719)
  Running 1, completed 0/4 Sun Sep 05 04:14:14 2021
  $a
  [1] 1
  
  Completed all runs in 0.3 seconds 
  == 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:
       x
    1. +-testthat::expect_error(h1$add_EI(1), NA) 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. \-(function (foo.vals) ...
   10.   \-stats::optim(...)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 241 ]
  Error: Test failures
  Execution halted