Running ‘testthat.R’ [85s/119s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(diceR)
  > 
  > test_check("diceR")
  ── 1. Error: No algorithms means all algorithms, output is an array (@test-conse
  Argument data should be a list of numeric vectors or matrices, or factors
  Backtrace:
    1. diceR::consensus_cluster(hgsc, nk = 4, reps = 1, progress = FALSE)
    5. purrr::pmap(list(fun, args), cc)
    6. diceR:::.f(.l[[1L]][[i]], .l[[2L]][[i]], ...)
    7. base::length(args$algs)
   15. purrr::when(., . > 0 ~ purrr::invoke(fun, args), ~NULL)
   16. [ base::eval(...) ] with 1 more call
   21. diceR:::som(x, nk[k], xdim, ydim, rlen, alpha, hc.method)
   22. purrr::when(., is.matrix(.) ~ ., ~as.matrix(.))
   29. diceR:::som_train(., xdim = xdim, ydim = ydim, rlen = rlen, alpha = alpha)
   30. kohonen::som(x, grid = grid, rlen = rlen, alpha = alpha)
   31. kohonen::supersom(list(X), ...)
   32. kohonen:::check.data(data)
  
  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
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 110 | SKIPPED: 0 | WARNINGS: 89 | FAILED: 1 ]
  1. Error: No algorithms means all algorithms, output is an array (@test-consensus_cluster.R#7) 
  
  Error: testthat unit tests failed
  Execution halted