Debian Codegraph @

tests/testthat/test-maps.R

raw
1 skip_on_cran()
2
3 skip_if_not_installed("modeltests")
4 library(modeltests)
5
6 skip_if_not_installed("maps")
7 ca <- maps::map("county", "ca", plot = FALSE, fill = TRUE)
8
9 test_that("tidy.map", {
10 check_arguments(tidy.map)
11
12 td <- tidy(ca)
13 check_tidy_output(td, strict = FALSE)
14 check_dims(td, expected_cols = 7)
15 })