Skip to content

Commit

Permalink
bug fix for 2022 blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerke committed Jan 19, 2023
1 parent 09a75a4 commit a2c3eba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: tigris
Type: Package
Title: Load Census TIGER/Line Shapefiles
Version: 2.0.0.9000
Date: 2023-01-13
Date: 2023-01-19
Authors@R: c(
person(given="Kyle", family="Walker", email="kyle@walker-data.com", role=c("aut", "cre")),
person(given="Bob", family="Rudis", email="bob@rudis.net", role="ctb")
Expand Down
2 changes: 1 addition & 1 deletion R/enumeration_units.R
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ blocks <- function(state, county = NULL, year = NULL, ...) {

if (year >= 2014) {

if (year %in% 2020:2021) {
if (year >= 2020) {

# New block logic for 2020
url <- sprintf("https://www2.census.gov/geo/tiger/TIGER%s/TABBLOCK20/tl_%s_%s_tabblock20.zip",
Expand Down

0 comments on commit a2c3eba

Please sign in to comment.