Running ‘testthat.R’ [8s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(comparer)
  > 
  > test_check("comparer")
  Running 1, completed 0/3 Sat Apr 30 14:00:18 2022
  $a
  [1] 0.8834872
  
  Running 2, completed 1/3 Sat Apr 30 14:00:19 2022
  $a
  [1] -0.5512864
  
  Running 3, completed 2/3 Sat Apr 30 14:00:19 2022
  $a
  [1] 0.1259548
  
  Running 1, completed 0/3 Sat Apr 30 14:00:21 2022
  $a
  [1] -0.8887616
  
  $b
  [1] 0.006847969
  
  Running 2, completed 1/3 Sat Apr 30 14:00:21 2022
  $a
  [1] 0.2335163
  
  $b
  [1] -0.3967943
  
  Running 3, completed 2/3 Sat Apr 30 14:00:21 2022
  $a
  [1] 0.8191903
  
  $b
  [1] 0.5454515
  
  Error in summary.connection(connection) : invalid connection
  In addition: Warning message:
  In .Internal(gc(verbose, reset, full)) :
    closing unused connection 4 (<-localhost:11139)
  Running 1, completed 0/4 Sat Apr 30 14:00:31 2022
  $a
  [1] 1
  
  Completed all runs in 0.3 seconds 
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 225 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-test_hype.R:21:3): hype works ─────────────────────────────────
  `h1$add_EI(1)` threw an error.
  Message: there is no package called 'DiceOptim'
  Class:   packageNotFoundError/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. └─base::loadNamespace(x)
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base withOneRestart(expr, restarts[[1L]])
   10.       └─base doWithOneRestart(return(expr), restart)
  ── Failure (test-test_hype.R:22:3): hype works ─────────────────────────────────
  `h1$add_EI(1)` threw an error.
  Message: there is no package called 'DiceOptim'
  Class:   packageNotFoundError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(h1$add_EI(1), NA) at test-test_hype.R:22: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. └─base::loadNamespace(x)
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base withOneRestart(expr, restarts[[1L]])
   10.       └─base doWithOneRestart(return(expr), restart)
  ── Failure (test-test_hype.R:24:3): hype works ─────────────────────────────────
  `h1$run_EI_for_time(1, 1)` threw an error.
  Message: there is no package called 'DiceOptim'
  Class:   packageNotFoundError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(h1$run_EI_for_time(1, 1), NA) at test-test_hype.R:24: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$run_EI_for_time(1, 1)
    7. │ └─self$add_EI(n = batch_size, covtype = covtype, nugget.estim = nugget.estim)
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base withOneRestart(expr, restarts[[1L]])
   11.       └─base doWithOneRestart(return(expr), restart)
  ── Failure (test-test_hype.R:39:3): hype works ─────────────────────────────────
  `h2$add_EI(n = 3)` threw an error.
  Message: there is no package called 'DiceOptim'
  Class:   packageNotFoundError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(h2$add_EI(n = 3), NA) at test-test_hype.R:39:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─h2$add_EI(n = 3)
    7. └─base::loadNamespace(x)
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base withOneRestart(expr, restarts[[1L]])
   10.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test_ffexp.R:33:3): ffexp ────────────────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'GGally'
  Backtrace:
      ▆
   1. ├─f1$plot_pairs() at test_ffexp.R:33:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base withOneRestart(expr, restarts[[1L]])
   5.       └─base doWithOneRestart(return(expr), restart)
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 225 ]
  Error: Test failures
  Execution halted