Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(ccdrAlgorithm)
  > 
  > test_check("ccdrAlgorithm")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-mvn.R:8:5): Generate MVN data without errors ──────────────────
  `generate_mvn_data(el, params, n = 1, ivn = NULL)` threw an error.
  Message: The igraph package is required for the method 'generate_mvn_data'. Please install it using install.packages("igraph").
  Class:   simpleError/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-mvn.R:8:4
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─ccdrAlgorithm::generate_mvn_data(el, params, n = 1, ivn = NULL)
  ── Error (test-mvn.R:15:5): Generate MVN data w/ interventions ─────────────────
  Error: The igraph package is required for the method 'generate_mvn_data'. Please install it using install.packages("igraph").
  Backtrace:
      █
   1. └─ccdrAlgorithm::generate_mvn_data(...) test-mvn.R:15:4
  ── Failure (test-mvn.R:32:5): ivn.rand = FALSE with invalid input returns an error (fixes issue #4) ──
  `generate_mvn_data(el, params, n = nobs, ivn = ivn, ivn.rand = FALSE)` threw an error with unexpected message.
  Expected match: "ivn.rand set to FALSE with invalid input"
  Actual message: "The igraph package is required for the method 'generate_mvn_data'. Please install it using install.packages(\"igraph\")."
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-mvn.R:32:4
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─ccdrAlgorithm::generate_mvn_data(...)
  ── Failure (test-mvn.R:37:5): ivn.rand = FALSE with invalid input returns an error (fixes issue #4) ──
  `generate_mvn_data(el, params, n = nobs, ivn = ivn, ivn.rand = FALSE)` threw an error with unexpected message.
  Expected match: "ivn.rand set to FALSE with invalid input"
  Actual message: "The igraph package is required for the method 'generate_mvn_data'. Please install it using install.packages(\"igraph\")."
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-mvn.R:37:4
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─ccdrAlgorithm::generate_mvn_data(...)
  
  [ FAIL 4 | WARN 0 | SKIP 1 | PASS 259 ]
  Error: Test failures
  Execution halted