Running ‘testthat.R’ [217s/217s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(diceR)
  > 
  > test_check("diceR")
  Warning: stack imbalance in '@', 162 then 163
  Warning: stack imbalance in '+', 161 then 162
  ── 1. Error: evaluation works with reference class and can plot (@test-consensus
  'where' must be an environment
  Backtrace:
    1. testthat::expect_length(...)
    4. diceR::consensus_evaluate(...)
    5. diceR::graph_all(E)
    6. diceR::graph_cdf(mat)
    7. diceR:::get_cdf(mat)
    6. purrr::modify_depth(., 2, ~.x[lower.tri(.x, diag = TRUE)])
    6. purrr::imap(., ~purrr::set_names(.x, paste(.y, names(.x), sep = ".")))
    6. dplyr::bind_cols(.)
    6. tidyr::gather_(., "Group", "CDF", names(.))
   14. tidyr::separate_(., "Group", c("k", "Method"), sep = "\\.")
   18. tidyr::separate(...)
   19. ellipsis::check_dots_used()
   21. ellipsis:::exit_handler(action)
   22. base::bquote(...)
  
  Selecting k and imputing non-clustered cases
  Computing consensus functions
  Evaluating output with consensus function results
  Diverse Cluster Ensemble Completed
  Selecting k and imputing non-clustered cases
  Computing consensus functions
  Evaluating output with consensus function results
  Diverse Cluster Ensemble Completed
  Selecting k and imputing non-clustered cases
  Computing consensus functions
  Evaluating output with consensus function results
  Diverse Cluster Ensemble Completed
  Selecting k and imputing non-clustered cases
  Computing consensus functions
  Diverse Cluster Ensemble Completed
  Selecting k and imputing non-clustered cases
  Computing consensus functions
  Diverse Cluster Ensemble Completed
  Selecting k and imputing non-clustered cases
  Computing consensus functions
  Diverse Cluster Ensemble Completed
  Selecting k and imputing non-clustered cases
  Computing consensus functions
  Diverse Cluster Ensemble Completed
  ── 2. Error: (unknown) (@test-graphs.R#8)  ─────────────────────────────────────
  'where' must be an environment
  Backtrace:
    1. diceR::graph_cdf(CC1)
    2. diceR:::get_cdf(mat)
    3. purrr::modify_depth(., 2, ~.x[lower.tri(.x, diag = TRUE)])
    3. purrr::imap(., ~purrr::set_names(.x, paste(.y, names(.x), sep = ".")))
    3. dplyr::bind_cols(.)
    3. tidyr::gather_(., "Group", "CDF", names(.))
   11. tidyr::separate_(., "Group", c("k", "Method"), sep = "\\.")
   13. tidyr::separate(...)
   14. ellipsis::check_dots_used()
   16. ellipsis:::exit_handler(action)
   17. base::bquote(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 102 | SKIPPED: 0 | WARNINGS: 71 | FAILED: 2 ]
  1. Error: evaluation works with reference class and can plot (@test-consensus_combine.R#25) 
  2. Error: (unknown) (@test-graphs.R#8) 
  
  Error: testthat unit tests failed
  Execution halted