tests/testthat/test-data.R

test_that("provided data sets plot correctly", {
  a <- plot_india(data = statepop, values = "pop_2023", include = "WB")
  b <- plot_india(data = wb_2011, values = "pop_2011")

  vdiffr::expect_doppelganger("statepop", a)
  vdiffr::expect_doppelganger("wb_2011", b)
})

Try the mapindia package in your browser

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

mapindia documentation built on April 3, 2025, 7:20 p.m.