Running 'testthat.R' [212s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(SCpubr)
  ---------------------------------------------------------------
  SCpubr
  
  If you use SCpubr in your research, please cite it accordingly: 
  Blanco-Carmona, E. Generating publication ready visualizations for Single Cell transcriptomics using SCpubr. bioRxiv (2022) doi:10.1101/2022.02.28.482303.
  
  If the package is useful to you, consider leaving a Star in the GitHub repo: https://github.com/enblacar/SCpubr/stargazers 
  
  Keep track of the package updates on Twitter (@Enblacar) or in https://github.com/enblacar/SCpubr/blob/main/NEWS.md 
  
  To suppress this startup message, use: 
  suppressPackageStartupMessages(library('SCpubr'))
  ---------------------------------------------------------------
  > test_check("SCpubr")
  
  
  [ FAIL 3 | WARN 0 | SKIP 348 | PASS 323 ]
  
  == Skipped tests ===============================================================
  * On CRAN (348)
  
  == Failed tests ================================================================
  -- Error ('test-do_EnrichmentHeatmap.R:37'): do_EnrichmentHeatmap: PASS -flavors --
  <assertError/simpleError/error/condition>
  Error: To run UCell scoring, R version 4.2.0 is required. Please select flavor = 'Seurat' if you are running a version inferior to this.
  Backtrace:
      x
   1. \-SCpubr::do_EnrichmentHeatmap(...) at test-do_EnrichmentHeatmap.R:37:4
   2.   \-SCpubr:::compute_enrichment_scores(...)
   3.     \-assertthat::assert_that(R_version >= "4.2.0", msg = "To run UCell scoring, R version 4.2.0 is required. Please select flavor = 'Seurat' if you are running a version inferior to this.")
  -- Error ('test-do_FunctionalAnnotationPlot.R:5'): do_FunctionalAnnotationPlot: CRAN essential tests --
  Error in ``[.data.frame`(p.build$data[[7]], c("label", "node"))`: undefined columns selected
  Backtrace:
      x
   1. \-SCpubr::do_FunctionalAnnotationPlot(...) at test-do_FunctionalAnnotationPlot.R:5:4
   2.   \-SCpubr:::do_EnrichedTermTreePlot(...)
   3.     +-p.build$data[[7]][c("label", "node")]
   4.     \-base::`[.data.frame`(p.build$data[[7]], c("label", "node"))
  -- Error ('test-utils.R:1120'): utils: compute_enrichment_scores - PASS - checks --
  <assertError/simpleError/error/condition>
  Error: To run UCell scoring, R version 4.2.0 is required. Please select flavor = 'Seurat' if you are running a version inferior to this.
  Backtrace:
      x
   1. \-SCpubr:::compute_enrichment_scores(...) at test-utils.R:1120:4
   2.   \-assertthat::assert_that(R_version >= "4.2.0", msg = "To run UCell scoring, R version 4.2.0 is required. Please select flavor = 'Seurat' if you are running a version inferior to this.")
  
  [ FAIL 3 | WARN 0 | SKIP 348 | PASS 323 ]
  Error: Test failures
  Execution halted