Running ‘testthat.R’ [16s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("treespace")
  Loading required package: treespace
  Loading required package: ape
  Loading required package: ade4
  Creating a generic function for 'toJSON' from package 'jsonlite' in package 'googleVis'
  ── 1. Error: multiDist equals the distance matrix from treespace (@testbasics.R#
  5 simultaneous processes spawned
  1: treespace(trees, nf = 2) at testthat/testbasics.R:51
  2: t(mcmapply(treeVec, x, lambda = lambda, MoreArgs = dots, mc.cores = processors))
  3: mcmapply(treeVec, x, lambda = lambda, MoreArgs = dots, mc.cores = processors)
  4: mclapply(seq_len(n), do_one, mc.preschedule = mc.preschedule, mc.set.seed = mc.set.seed, 
         mc.silent = mc.silent, mc.cores = mc.cores, mc.cleanup = mc.cleanup, affinity.list = affinity.list)
  5: .check_ncores(cores)
  6: stop(msg, call. = TRUE)
  
  ── 2. Error: medTree results are consistent whether the trees or their vectors a
  5 simultaneous processes spawned
  1: expect_equal(medTree(trees)$mindist, medTree(treespace(trees, nf = 2, return.tree.vectors = TRUE)$vectors)$mindist) at testthat/testbasics.R:66
  2: quasi_label(enquo(expected), expected.label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: medTree(treespace(trees, nf = 2, return.tree.vectors = TRUE)$vectors)
  5: treespace(trees, nf = 2, return.tree.vectors = TRUE)
  6: t(mcmapply(treeVec, x, lambda = lambda, MoreArgs = dots, mc.cores = processors))
  7: mcmapply(treeVec, x, lambda = lambda, MoreArgs = dots, mc.cores = processors)
  8: mclapply(seq_len(n), do_one, mc.preschedule = mc.preschedule, mc.set.seed = mc.set.seed, 
         mc.silent = mc.silent, mc.cores = mc.cores, mc.cleanup = mc.cleanup, affinity.list = affinity.list)
  9: .check_ncores(cores)
  10: stop(msg, call. = TRUE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 42 SKIPPED: 0 FAILED: 2
  1. Error: multiDist equals the distance matrix from treespace (@testbasics.R#51) 
  2. Error: medTree results are consistent whether the trees or their vectors are supplied (@testbasics.R#66) 
  
  Error: testthat unit tests failed
  Execution halted