Running ‘testthat.R’ [11s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat", warn.conflicts = FALSE)
  > library("TreeDist")
  > 
  > test_check("TreeDist")
  NULL
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-tree_distance_utilities.R:170:3): Matches are reported ────────
  "a b | c d .. a c | b d" not equal to attr(...).
  1/1 mismatches
  x[1]: "a b | c d .. a c | b d"
  y[1]: "c d | a b .. b d | a c"
  ── Failure (test-tree_information.R:24:3): SplitwiseInfo() / ClusteringInfo() handle probabilities ──
  `SplitwiseInfo(tree, p)` did not throw an error.
  Backtrace:
      █
   1. └─TreeDist:::Test(expect_error, tree, TRUE) test-tree_information.R:24:2
   2.   └─testthat:::Expect(..., SplitwiseInfo(tree, p)) test-tree_information.R:12:4
  ── Failure (test-tree_information.R:24:3): SplitwiseInfo() / ClusteringInfo() handle probabilities ──
  `ClusteringInfo(tree, p)` did not throw an error.
  Backtrace:
      █
   1. └─TreeDist:::Test(expect_error, tree, TRUE) test-tree_information.R:24:2
   2.   └─testthat:::Expect(..., ClusteringInfo(tree, p)) test-tree_information.R:13:4
  ── Failure (test-tree_information.R:24:3): SplitwiseInfo() / ClusteringInfo() handle probabilities ──
  `ClusteringEntropy(tree, p)` did not throw an error.
  Backtrace:
      █
   1. └─TreeDist:::Test(expect_error, tree, TRUE) test-tree_information.R:24:2
   2.   └─testthat:::Expect(..., ClusteringEntropy(tree, p)) test-tree_information.R:14:4
  ── Failure (test-tree_information.R:26:3): SplitwiseInfo() / ClusteringInfo() handle probabilities ──
  SplitwiseInfo(tree) is not strictly more than SplitwiseInfo(tree, 100). Difference: 0
  ── Failure (test-tree_information.R:27:3): SplitwiseInfo() / ClusteringInfo() handle probabilities ──
  ClusteringInfo(tree) is not strictly more than ClusteringInfo(tree, 100). Difference: 0
  ── Failure (test-tree_information.R:28:3): SplitwiseInfo() / ClusteringInfo() handle probabilities ──
  ClusteringEntropy(tree) is not strictly more than ClusteringEntropy(tree, 100). Difference: 0
  ── Failure (test-tree_information.R:33:3): SplitwiseInfo() / ClusteringInfo() handle probabilities ──
  0 not equal to SplitwiseInfo(tree, 60 * 3).
  1/1 mismatches
  [1] 0 - 1.58 == -1.58
  ── Failure (test-tree_information.R:35:3): SplitwiseInfo() / ClusteringInfo() handle probabilities ──
  1/3 not equal to Clust(tree, 60 * 3).
  1/1 mismatches
  [1] 0.333 - 1 == -0.667
  ── Failure (test-tree_information.R:44:3): SplitwiseInfo() / ClusteringInfo() handle probabilities ──
  `expectation` not equal to SplitwiseInfo(tree, 100).
  1/1 mismatches
  [1] 0.214 - 1.58 == -1.37
  ── Failure (test-tree_information.R:45:3): SplitwiseInfo() / ClusteringInfo() handle probabilities ──
  0.6 not equal to Clust(tree, 100).
  1/1 mismatches
  [1] 0.6 - 1 == -0.4
  ── Failure (test-tree_information.R:51:3): SplitwiseInfo() / ClusteringInfo() handle probabilities ──
  SplitwiseInfo(tree, 100) not equal to ConsensusInfo(treeProfile, "p").
  1/1 mismatches
  [1] 1.58 - 0.214 == 1.37
  ── Failure (test-tree_information.R:52:3): SplitwiseInfo() / ClusteringInfo() handle probabilities ──
  ClusteringInfo(tree, 100) not equal to ConsensusInfo(treeProfile, "c").
  1/1 mismatches
  [1] 4 - 2.4 == 1.6
  
  [ FAIL 13 | WARN 0 | SKIP 1 | PASS 1159 ]
  Deleting unused snapshots:
  * _snaps/Plot3/plotting-order.svg
  Error: Test failures
  Execution halted