inst/tinytest/test_compare.R

# Compare ======================================================================
if (requireNamespace("spacesXYZ", quietly = TRUE)) {
  col <- colour("okabe ito", names = TRUE)(8)

  comp <- compare(col, metric = 2000, diag = FALSE, upper = FALSE)
  expect_equal_to_reference(comp, file = "_snaps/compare.rds")
}

Try the khroma package in your browser

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

khroma documentation built on Sept. 11, 2024, 5:26 p.m.