Running 'testthat.R' [154s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(diceR)
  > 
  > test_check("diceR")
  -- 1. Error: Check LCE with hgsc data with 3 consensus_cluster algorithms (@test
  incompatible types (from builtin to double) in subassignment type fix
  1: LCE(E = x_imputed, k = k, R = 5, sim.mat = "asrs") at testthat/test-consensus_funs.R:43
  2: asrs(E = E, dc = dc)
  3: weigh_clusters(E)
  4: diag(0, no_allcl) %>% magrittr::inset(upper.tri(.), purrr::map2_dbl(upper_tri_row(no_allcl), 
         upper_tri_col(no_allcl), ~{
             tmp <- pc[, .x] + pc[, .y]
             ifelse(sum(tmp) > 0, sum(tmp == 2)/sum(tmp > 0), 0)
         })) %>% magrittr::add(t(.))
  5: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  6: eval(quote(`_fseq`(`_lhs`)), env, env)
  7: eval(quote(`_fseq`(`_lhs`)), env, env)
  8: `_fseq`(`_lhs`)
  9: freduce(value, `_function_list`)
  10: function_list[[i]](value)
  
  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: 106 SKIPPED: 0 FAILED: 1
  1. Error: Check LCE with hgsc data with 3 consensus_cluster algorithms (@test-consensus_funs.R#43) 
  
  Error: testthat unit tests failed
  Execution halted