Running ‘testthat.R’ [29s/34s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(iheatmapr)
  > 
  > test_check("iheatmapr")
  ── 1. Failure: can add row clustering with kmeans to single horizontal 
          
  Not equal to reference from `reference/row_clustering_kmeans_horizontal.rds`.
  Component "data": Component 1: Component 1: Mean relative difference: 1.667274
  Component "data": Component 1: Component 5: 200 string mismatches
  Component "data": Component 2: Component 1: Mean relative difference: 0.9230769
  Component "data": Component 2: Component 5: 20 string mismatches
  
  ── 2. Failure: can add row clustering with kmeans to single vertical 
            
  Not equal to reference from `reference/row_clustering_kmeans_vertical.rds`.
  Component "data": Component 1: Component 1: Mean relative difference: 1.634691
  Component "data": Component 1: Component 5: 200 string mismatches
  Component "data": Component 2: Component 1: Mean relative difference: 0.75
  Component "data": Component 2: Component 5: 20 string mismatches
  
  ── 3. Failure: can add col clustering with kmeans to single horizontal heatmap (
  Not equal to reference from `reference/col_clustering_kmeans_horizontal.rds`.
  Component "data": Component 1: Component 1: Mean relative difference: 1.669249
  Component "data": Component 1: Component 5: 120 string mismatches
  Component "data": Component 2: Component 1: Mean relative difference: 0.3333333
  Component "data": Component 2: Component 5: 6 string mismatches
  
  ── 4. Failure: can add col clustering with kmeans to single vertical heatmap (@t
  Not equal to reference from `reference/col_clustering_kmeans_vertical.rds`.
  Component "data": Component 1: Component 1: Mean relative difference: 1.669249
  Component "data": Component 1: Component 5: 120 string mismatches
  Component "data": Component 2: Component 1: Mean relative difference: 1
  Component "data": Component 2: Component 5: 6 string mismatches
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 340 SKIPPED: 0 FAILED: 4
  1. Failure: can add row clustering with kmeans to single horizontal 
            heatmap (@test_clustering.R#62) 
  2. Failure: can add row clustering with kmeans to single vertical 
            heatmap (@test_clustering.R#70) 
  3. Failure: can add col clustering with kmeans to single horizontal heatmap (@test_clustering.R#77) 
  4. Failure: can add col clustering with kmeans to single vertical heatmap (@test_clustering.R#83) 
  
  Error: testthat unit tests failed
  Execution halted