tests/testthat/test-scales.R

test_that("scale functions behave correctly", {
  expect_s3_class(scale_color_okcolors(), "ScaleDiscrete")
  expect_s3_class(scale_fill_okcolors(discrete = FALSE), "ScaleContinuous")
})

Try the okcolors package in your browser

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

okcolors documentation built on June 8, 2025, 9:42 p.m.