tests/testthat/test-filter-layers.R

test_that("filter_county_poly correctly filters county poly layers", {
  portage_cty <- filter_county_poly("portage")
  central_wi_counties <- filter_county_poly("portage", "marathon", "waupaca")
  expect_true(nrow(portage_cty) == 1)
  expect_true(nrow(central_wi_counties) == 3)
})

Try the wdnr.gis package in your browser

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

wdnr.gis documentation built on Oct. 26, 2023, 1:08 a.m.