tests/testthat/test-download.R

test_that('downloads work', {
  skip_on_cran()
  skip_on_ci()
  skip_if(Sys.info()['login'] == 'chris')

  expect_s3_class(tt_states(), 'sf')
  expect_s3_class(tt_coastline(), 'sf')
  expect_s3_class(tt_counties(state = 'Wash'), 'sf')
  expect_s3_class(tt_counties(state = 'Iowa', year = 2016), 'sf')
  expect_s3_class(tt_voting_districts('DE', year = 2022), 'sf')
  expect_s3_class(tt_voting_districts('DE', year = 2010), 'sf')
})

Try the tinytiger package in your browser

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

tinytiger documentation built on Oct. 18, 2023, 1:11 a.m.