Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(tidyHeatmap)
  Loading required package: ComplexHeatmap
  Loading required package: grid
  ========================================
  ComplexHeatmap version 2.2.0
  Bioconductor page: http://bioconductor.org/packages/ComplexHeatmap/
  Github page: https://github.com/jokergoo/ComplexHeatmap
  Documentation: http://jokergoo.github.io/ComplexHeatmap-reference
  
  If you use it in published research, please cite:
  Gu, Z. Complex heatmaps reveal patterns and correlations in multidimensional 
    genomic data. Bioinformatics 2016.
  ========================================
  
  
  Attaching package: 'tidyHeatmap'
  
  The following object is masked from 'package:stats':
  
      heatmap
  
  > 
  > test_check("tidyHeatmap")
  -- 1. Error: basic plot (@tests.R#6)  ------------------------------------------
  old version of unit class is no longer allowed
  Backtrace:
    1. tidyHeatmap::heatmap(...)
    2. tidyHeatmap:::heatmap.tbl_df(...)
    3. tidyHeatmap:::plot_heatmap(...)
   12. ComplexHeatmap::Heatmap(...)
   13. grid:::Ops.unit(row_dend_width, ht_opt$DENDROGRAM_PADDING)
   14. grid:::as.unit(e2)
  
  -- 2. Error: grouped plot (@tests.R#21)  ---------------------------------------
  x should be in mm unit
  Backtrace:
    1. tidyHeatmap::heatmap(...)
    2. tidyHeatmap:::heatmap.tbl_df(...)
    3. tidyHeatmap:::plot_heatmap(...)
    4. tidyHeatmap:::get_group_annotation(...)
    6. ComplexHeatmap::rowAnnotation(...)
    7. ComplexHeatmap::HeatmapAnnotation(..., which = "row")
   10. ComplexHeatmap:::`>.unit`(anno_fun_extend[[1]], 0)
   11. ComplexHeatmap:::stop_wrap("x should be in mm unit")
  
  -- 3. Error: annotated plot numerical continuous intereg nominal annot (@tests.R
  x should be in mm unit
  Backtrace:
    1. tidyHeatmap::heatmap(...)
    2. tidyHeatmap:::heatmap.tbl_df(...)
    3. tidyHeatmap:::plot_heatmap(...)
    4. tidyHeatmap:::get_top_annotation(...)
    6. ComplexHeatmap::HeatmapAnnotation(...)
    9. ComplexHeatmap:::`>.unit`(anno_fun_extend[[4]], 0)
   10. ComplexHeatmap:::stop_wrap("x should be in mm unit")
  
  -- 4. Error: annotated plot continuous annot as well (@tests.R#71)  ------------
  x should be in mm unit
  Backtrace:
    1. tidyHeatmap::heatmap(...)
    2. tidyHeatmap:::heatmap.tbl_df(...)
    3. tidyHeatmap:::plot_heatmap(...)
    4. tidyHeatmap:::get_top_annotation(...)
    6. ComplexHeatmap::HeatmapAnnotation(...)
    9. ComplexHeatmap:::`>.unit`(anno_fun_extend[[4]], 0)
   10. ComplexHeatmap:::stop_wrap("x should be in mm unit")
  
  -- 5. Error: grouped and annotated plot (@tests.R#86)  -------------------------
  x should be in mm unit
  Backtrace:
    1. tidyHeatmap::heatmap(...)
    2. tidyHeatmap:::heatmap.tbl_df(...)
    3. tidyHeatmap:::plot_heatmap(...)
    4. tidyHeatmap:::get_group_annotation(...)
    6. ComplexHeatmap::rowAnnotation(...)
    7. ComplexHeatmap::HeatmapAnnotation(..., which = "row")
   10. ComplexHeatmap:::`>.unit`(anno_fun_extend[[1]], 0)
   11. ComplexHeatmap:::stop_wrap("x should be in mm unit")
  
  -- 6. Error: pasilla one annotation (@tests.R#105)  ----------------------------
  x should be in mm unit
  Backtrace:
    1. tidyHeatmap::heatmap(...)
    2. tidyHeatmap:::heatmap.tbl_df(...)
    3. tidyHeatmap:::plot_heatmap(...)
    4. tidyHeatmap:::get_top_annotation(...)
    6. ComplexHeatmap::HeatmapAnnotation(...)
    9. ComplexHeatmap:::`>.unit`(anno_fun_extend[[4]], 0)
   10. ComplexHeatmap:::stop_wrap("x should be in mm unit")
  
  -- 7. Error: pasilla 2 annotations (@tests.R#122)  -----------------------------
  x should be in mm unit
  Backtrace:
    1. tidyHeatmap::heatmap(...)
    2. tidyHeatmap:::heatmap.tbl_df(...)
    3. tidyHeatmap:::plot_heatmap(...)
    4. tidyHeatmap:::get_top_annotation(...)
    6. ComplexHeatmap::HeatmapAnnotation(...)
    9. ComplexHeatmap:::`>.unit`(anno_fun_extend[[4]], 0)
   10. ComplexHeatmap:::stop_wrap("x should be in mm unit")
  
  == testthat results  ===========================================================
  [ OK: 1 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: basic plot (@tests.R#6) 
  2. Error: grouped plot (@tests.R#21) 
  3. Error: annotated plot numerical continuous intereg nominal annot (@tests.R#39) 
  4. Error: annotated plot continuous annot as well (@tests.R#71) 
  5. Error: grouped and annotated plot (@tests.R#86) 
  6. Error: pasilla one annotation (@tests.R#105) 
  7. Error: pasilla 2 annotations (@tests.R#122) 
  
  Error: testthat unit tests failed
  Execution halted