tests/testthat/test-maps.R

context("maps tidiers")

skip_on_cran()

skip_if_not_installed("modeltests")
library(modeltests)

skip_if_not_installed("maps")
ca <- maps::map("county", "ca", plot = FALSE, fill = TRUE)

test_that("tidy.map", {
  check_arguments(tidy.map)

  td <- tidy(ca)
  check_tidy_output(td, strict = FALSE)
  check_dims(td, expected_cols = 7)
})

Try the broom package in your browser

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

broom documentation built on May 29, 2024, 8:25 a.m.