tests/testthat/test-00-load-contract.R

test_that("legacy spatial namespaces are not eagerly imported", {
  namespace <- readLines(system.file("NAMESPACE", package = "zipcodeR"))
  expect_false(any(grepl("^import\\(tidycensus\\)$", namespace)))
  expect_false(any(grepl("^importFrom\\(raster,", namespace)))
})

Try the zipcodeR package in your browser

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

zipcodeR documentation built on Sept. 7, 2026, 5:06 p.m.