tests/testthat/test-plot.R

context("palette_plot")
test_that("plot works", {
        skip_on_cran()
        A1 = function() palette_plot(rainbow_pal)
        vdiffr::expect_doppelganger("a1", A1)
        
        A2 = function() palette_bivariate_plot(sunset_pal)
        vdiffr::expect_doppelganger("a2", A2)       
        
})

Try the colorblindcheck package in your browser

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

colorblindcheck documentation built on May 31, 2023, 8:08 p.m.