tests/testthat/test-do_ColorBlindCheck.R

if (base::isFALSE(dep_check[["do_ColorBlindCheck"]])){
  testthat::test_that("do_ColorBlindCheck: PASS - color vectors", {
    
    p <- SCpubr::do_ColorBlindCheck(colors.use = c("red", "blue", "green"), flip = TRUE)
    testthat::expect_true(ggplot2::is_ggplot(p))
    
    p <- SCpubr::do_ColorBlindCheck(colors.use = c("red", "blue", "green"), flip = FALSE)
    testthat::expect_true(ggplot2::is_ggplot(p))
    
  })
}

Try the SCpubr package in your browser

Any scripts or data that you put into this service are public.

SCpubr documentation built on Aug. 21, 2025, 6 p.m.