Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(stabm)
  > 
  > test_check("stabm")
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  Failed with error:  'there is no package called 'igraph''
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_stability_adjusted.R:72:3): set 1: basic ────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'igraph'
  Backtrace:
       █
    1. ├─base::lapply(...) test_stability_adjusted.R:72:2
    2. │ └─stabm:::FUN(X[[i]], ...)
    3. │   └─stabm:::my_expect_number_adj(m, feats1, sim.mat1, "estimate") test_stability_adjusted.R:73:4
    4. │     ├─checkmate::expect_number(...) test_stability_adjusted.R:53:4
    5. │     └─get(m)(...)
    6. │       └─stabm:::stability(...)
    7. │         ├─base::do.call(measure.list$scoreFun, measure.args)
    8. │         └─(function (features, F.all, sim.mat, ...) ...
    9. │           └─stabm:::measureScoreHelper(...)
   10. │             ├─base::unlist(...)
   11. │             └─base::lapply(...)
   12. │               └─stabm:::FUN(X[[i]], ...)
   13. │                 └─base::sapply(...)
   14. │                   └─base::lapply(X = X, FUN = FUN, ...)
   15. │                     └─stabm:::FUN(X[[i]], ...)
   16. │                       └─stabm:::measureFun(features[[i]], features[[j]])
   17. └─base::loadNamespace(x)
   18.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19.     └─base:::withOneRestart(expr, restarts[[1L]])
   20.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_stability_adjusted.R:86:3): set 1: Matrix ───────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'igraph'
  Backtrace:
       █
    1. ├─base::lapply(...) test_stability_adjusted.R:86:2
    2. │ └─stabm:::FUN(X[[i]], ...)
    3. │   └─stabm:::my_expect_number_adj(m, feats1, sim.mat5, "estimate") test_stability_adjusted.R:87:4
    4. │     ├─checkmate::expect_number(...) test_stability_adjusted.R:53:4
    5. │     └─get(m)(...)
    6. │       └─stabm:::stability(...)
    7. │         ├─base::do.call(measure.list$scoreFun, measure.args)
    8. │         └─(function (features, F.all, sim.mat, ...) ...
    9. │           └─stabm:::measureScoreHelper(...)
   10. │             ├─base::unlist(...)
   11. │             └─base::lapply(...)
   12. │               └─stabm:::FUN(X[[i]], ...)
   13. │                 └─base::sapply(...)
   14. │                   └─base::lapply(X = X, FUN = FUN, ...)
   15. │                     └─stabm:::FUN(X[[i]], ...)
   16. │                       └─stabm:::measureFun(features[[i]], features[[j]])
   17. └─base::loadNamespace(x)
   18.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19.     └─base:::withOneRestart(expr, restarts[[1L]])
   20.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_stability_adjusted.R:92:3): set 1: Matrix sparse ────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'igraph'
  Backtrace:
       █
    1. ├─base::lapply(...) test_stability_adjusted.R:92:2
    2. │ └─stabm:::FUN(X[[i]], ...)
    3. │   └─stabm:::my_expect_number_adj(m, feats1, sim.mat6, "estimate") test_stability_adjusted.R:93:4
    4. │     ├─checkmate::expect_number(...) test_stability_adjusted.R:53:4
    5. │     └─get(m)(...)
    6. │       └─stabm:::stability(...)
    7. │         ├─base::do.call(measure.list$scoreFun, measure.args)
    8. │         └─(function (features, F.all, sim.mat, ...) ...
    9. │           └─stabm:::measureScoreHelper(...)
   10. │             ├─base::unlist(...)
   11. │             └─base::lapply(...)
   12. │               └─stabm:::FUN(X[[i]], ...)
   13. │                 └─base::sapply(...)
   14. │                   └─base::lapply(X = X, FUN = FUN, ...)
   15. │                     └─stabm:::FUN(X[[i]], ...)
   16. │                       └─stabm:::measureFun(features[[i]], features[[j]])
   17. └─base::loadNamespace(x)
   18.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19.     └─base:::withOneRestart(expr, restarts[[1L]])
   20.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_stability_adjusted.R:98:3): set 1: Matrix non-symmetric format ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'igraph'
  Backtrace:
       █
    1. ├─base::lapply(...) test_stability_adjusted.R:98:2
    2. │ └─stabm:::FUN(X[[i]], ...)
    3. │   └─stabm:::my_expect_number_adj(m, feats1, sim.mat7, "estimate") test_stability_adjusted.R:99:4
    4. │     ├─checkmate::expect_number(...) test_stability_adjusted.R:53:4
    5. │     └─get(m)(...)
    6. │       └─stabm:::stability(...)
    7. │         ├─base::do.call(measure.list$scoreFun, measure.args)
    8. │         └─(function (features, F.all, sim.mat, ...) ...
    9. │           └─stabm:::measureScoreHelper(...)
   10. │             ├─base::unlist(...)
   11. │             └─base::lapply(...)
   12. │               └─stabm:::FUN(X[[i]], ...)
   13. │                 └─base::sapply(...)
   14. │                   └─base::lapply(X = X, FUN = FUN, ...)
   15. │                     └─stabm:::FUN(X[[i]], ...)
   16. │                       └─stabm:::measureFun(features[[i]], features[[j]])
   17. └─base::loadNamespace(x)
   18.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19.     └─base:::withOneRestart(expr, restarts[[1L]])
   20.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_stability_adjusted.R:111:3): set 2: some empty sets: NAs ────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'igraph'
  Backtrace:
       █
    1. ├─base::lapply(...) test_stability_adjusted.R:111:2
    2. │ └─stabm:::FUN(X[[i]], ...)
    3. │   └─stabm:::my_expect_na_adj(m, feats2, sim.mat1, "estimate") test_stability_adjusted.R:112:4
    4. │     ├─checkmate::expect_scalar_na(...) test_stability_adjusted.R:65:4
    5. │     │ └─checkmate::checkScalarNA(x, null.ok)
    6. │     └─get(m)(...)
    7. │       └─stabm:::stability(...)
    8. │         ├─base::do.call(expectationFun, expectation.args)
    9. │         └─(function (features, F.all, N, fun, ...) ...
   10. │           └─stabm:::measureScoreHelper(...)
   11. │             ├─base::unlist(...)
   12. │             └─base::lapply(...)
   13. │               └─stabm:::FUN(X[[i]], ...)
   14. │                 └─base::sapply(...)
   15. │                   └─base::lapply(X = X, FUN = FUN, ...)
   16. │                     └─stabm:::FUN(X[[i]], ...)
   17. │                       └─stabm:::measureFun(features[[i]], features[[j]])
   18. │                         └─base::sapply(samples, fun, F.all = F.all, ...)
   19. │                           └─base::lapply(X = X, FUN = FUN, ...)
   20. │                             └─stabm:::FUN(X[[i]], ...)
   21. │                               └─stabm:::measureScoreHelper(...)
   22. │                                 ├─base::unlist(...)
   23. │                                 └─base::lapply(...)
   24. │                                   └─stabm:::FUN(X[[i]], ...)
   25. │                                     └─base::sapply(...)
   26. │                                       └─base::lapply(X = X, FUN = FUN, ...)
   27. │                                         └─stabm:::FUN(X[[i]], ...)
   28. │                                           └─stabm:::measureFun(features[[i]], features[[j]])
   29. └─base::loadNamespace(x)
   30.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   31.     └─base:::withOneRestart(expr, restarts[[1L]])
   32.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_stability_adjusted.R:117:3): set 2: some empty sets: impute NAs ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'igraph'
  Backtrace:
       █
    1. ├─base::lapply(...) test_stability_adjusted.R:117:2
    2. │ └─stabm:::FUN(X[[i]], ...)
    3. │   └─stabm:::my_expect_number_adj(...) test_stability_adjusted.R:118:4
    4. │     ├─checkmate::expect_number(...) test_stability_adjusted.R:53:4
    5. │     └─get(m)(...)
    6. │       └─stabm:::stability(...)
    7. │         ├─base::do.call(expectationFun, expectation.args)
    8. │         └─(function (features, F.all, N, fun, ...) ...
    9. │           └─stabm:::measureScoreHelper(...)
   10. │             ├─base::unlist(...)
   11. │             └─base::lapply(...)
   12. │               └─stabm:::FUN(X[[i]], ...)
   13. │                 └─base::sapply(...)
   14. │                   └─base::lapply(X = X, FUN = FUN, ...)
   15. │                     └─stabm:::FUN(X[[i]], ...)
   16. │                       └─stabm:::measureFun(features[[i]], features[[j]])
   17. │                         └─base::sapply(samples, fun, F.all = F.all, ...)
   18. │                           └─base::lapply(X = X, FUN = FUN, ...)
   19. │                             └─stabm:::FUN(X[[i]], ...)
   20. │                               └─stabm:::measureScoreHelper(...)
   21. │                                 ├─base::unlist(...)
   22. │                                 └─base::lapply(...)
   23. │                                   └─stabm:::FUN(X[[i]], ...)
   24. │                                     └─base::sapply(...)
   25. │                                       └─base::lapply(X = X, FUN = FUN, ...)
   26. │                                         └─stabm:::FUN(X[[i]], ...)
   27. │                                           └─stabm:::measureFun(features[[i]], features[[j]])
   28. └─base::loadNamespace(x)
   29.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   30.     └─base:::withOneRestart(expr, restarts[[1L]])
   31.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_stability_adjusted.R:138:3): set 4: named ───────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'igraph'
  Backtrace:
       █
    1. ├─base::lapply(...) test_stability_adjusted.R:138:2
    2. │ └─stabm:::FUN(X[[i]], ...)
    3. │   └─stabm:::my_expect_number_adj(m, feats4, sim.mat2, "estimate") test_stability_adjusted.R:139:4
    4. │     ├─checkmate::expect_number(...) test_stability_adjusted.R:53:4
    5. │     └─get(m)(...)
    6. │       └─stabm:::stability(...)
    7. │         ├─base::do.call(measure.list$scoreFun, measure.args)
    8. │         └─(function (features, F.all, sim.mat, ...) ...
    9. │           └─stabm:::measureScoreHelper(...)
   10. │             ├─base::unlist(...)
   11. │             └─base::lapply(...)
   12. │               └─stabm:::FUN(X[[i]], ...)
   13. │                 └─base::sapply(...)
   14. │                   └─base::lapply(X = X, FUN = FUN, ...)
   15. │                     └─stabm:::FUN(X[[i]], ...)
   16. │                       └─stabm:::measureFun(features[[i]], features[[j]])
   17. └─base::loadNamespace(x)
   18.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19.     └─base:::withOneRestart(expr, restarts[[1L]])
   20.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_stability_adjusted.R:144:3): set 4: character input exact correction ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'igraph'
  Backtrace:
       █
    1. ├─base::lapply(...) test_stability_adjusted.R:144:2
    2. │ └─stabm:::FUN(X[[i]], ...)
    3. │   └─stabm:::my_expect_number_adj(m, feats4, sim.mat2, "exact") test_stability_adjusted.R:145:4
    4. │     ├─checkmate::expect_number(...) test_stability_adjusted.R:53:4
    5. │     └─get(m)(...)
    6. │       └─stabm:::stability(...)
    7. │         ├─base::do.call(measure.list$scoreFun, measure.args)
    8. │         └─(function (features, F.all, sim.mat, ...) ...
    9. │           └─stabm:::measureScoreHelper(...)
   10. │             ├─base::unlist(...)
   11. │             └─base::lapply(...)
   12. │               └─stabm:::FUN(X[[i]], ...)
   13. │                 └─base::sapply(...)
   14. │                   └─base::lapply(X = X, FUN = FUN, ...)
   15. │                     └─stabm:::FUN(X[[i]], ...)
   16. │                       └─stabm:::measureFun(features[[i]], features[[j]])
   17. └─base::loadNamespace(x)
   18.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19.     └─base:::withOneRestart(expr, restarts[[1L]])
   20.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_stability_adjusted.R:160:3): set 5: constant selection gives value 1 ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'igraph'
  Backtrace:
       █
    1. ├─base::lapply(...) test_stability_adjusted.R:160:2
    2. │ └─stabm:::FUN(X[[i]], ...)
    3. │   ├─testthat::expect_equal(...) test_stability_adjusted.R:161:4
    4. │   │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    5. │   │   └─rlang::eval_bare(expr, quo_get_env(quo))
    6. │   └─get(m)(...)
    7. │     └─stabm:::stability(...)
    8. │       ├─base::do.call(expectationFun, expectation.args)
    9. │       └─(function (features, F.all, fun, ...) ...
   10. │         └─stabm:::measureScoreHelper(...)
   11. │           ├─base::unlist(...)
   12. │           └─base::lapply(...)
   13. │             └─stabm:::FUN(X[[i]], ...)
   14. │               └─base::sapply(...)
   15. │                 └─base::lapply(X = X, FUN = FUN, ...)
   16. │                   └─stabm:::FUN(X[[i]], ...)
   17. │                     └─stabm:::measureFun(features[[i]], features[[j]])
   18. │                       └─base::sapply(samples, fun, F.all = F.all, ...)
   19. │                         └─base::lapply(X = X, FUN = FUN, ...)
   20. │                           └─stabm:::FUN(X[[i]], ...)
   21. │                             └─stabm:::measureScoreHelper(...)
   22. │                               ├─base::unlist(...)
   23. │                               └─base::lapply(...)
   24. │                                 └─stabm:::FUN(X[[i]], ...)
   25. │                                   └─base::sapply(...)
   26. │                                     └─base::lapply(X = X, FUN = FUN, ...)
   27. │                                       └─stabm:::FUN(X[[i]], ...)
   28. │                                         └─stabm:::measureFun(features[[i]], features[[j]])
   29. └─base::loadNamespace(x)
   30.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   31.     └─base:::withOneRestart(expr, restarts[[1L]])
   32.       └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 244 ]
  Error: Test failures
  Execution halted