tests/testthat/test-get_tidycensus.R

test_that("tidycensus_call() works", {
  expect_error(tidycensus_call("get_acs", NULL), "must all be named")
  expect_equal(
    tidycensus_call("get_acs", geography = "state", year = 2010),
    quote(tidycensus::get_acs(geography = "state", year = 2010))
  )
})

Try the sociome package in your browser

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

sociome documentation built on Jan. 10, 2026, 9:17 a.m.