Skip to content

Commit

Permalink
throw error when geometry is requested for congressional districts in…
Browse files Browse the repository at this point in the history
… 2020 pending new TIGER release
  • Loading branch information
walkerke committed Sep 6, 2023
1 parent 01945d4 commit 0c8e96e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/census.R
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,10 @@ get_decennial <- function(geography,
if (geography == "urban area" && year == 2020) {
geom <- try(suppressMessages(use_tigris(geography = geography, year = year,
state = state, county = county, criteria = "2020", ...)))
} else if (sumfile == "cd118") {
stop("Geometry is not yet available for this sumfile, but will be in mid-September 2023.")
# try(suppressMessages(use_tigris(geography = geography, year = 2022,
# state = state, county = county, ...)))
} else {
geom <- try(suppressMessages(use_tigris(geography = geography, year = year,
state = state, county = county, ...)))
Expand Down

0 comments on commit 0c8e96e

Please sign in to comment.