tests/testthat/test-r2dii_colours.R

test_that("outputs the expected snapshot", {
  expect_snapshot({
    palette_colours

    scenario_colours

    sector_colours

    technology_colours
  })
})

test_that("scenario_colours has five rows", {
  # Requirement of get_ordered_scenario_colours()
  expect_equal(nrow(scenario_colours), 5L)
})

Try the r2dii.plot package in your browser

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

r2dii.plot documentation built on May 31, 2023, 6:46 p.m.