Skip to content

Commit 2f10909

Browse files
committed
patch urban areas for 2023
1 parent 9f2b55f commit 2f10909

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: tigris
22
Type: Package
33
Title: Load Census TIGER/Line Shapefiles
4-
Version: 2.0.6
5-
Date: 2024-01-23
4+
Version: 2.1.1
5+
Date: 2024-03-26
66
Authors@R: c(
77
person(given="Kyle", family="Walker", email="[email protected]", role=c("aut", "cre")),
88
person(given="Bob", family="Rudis", email="[email protected]", role="ctb")

R/metro_areas.R

+4-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ urban_areas <- function(cb = FALSE, year = NULL, criteria = NULL, ...) {
125125

126126
} else {
127127

128-
if (!is.null(criteria) && criteria == "2020") {
128+
if (year >= 2023) {
129+
url <- sprintf("https://www2.census.gov/geo/tiger/TIGER%s/UAC/tl_%s_us_uac20.zip",
130+
cyear, cyear)
131+
} else if (!is.null(criteria) && criteria == "2020") {
129132
if (year != 2020) {
130133
stop("2020 criteria is only supported when `year` is set to 2020 at the moment.", call. = FALSE)
131134
}

R/tigris-package.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#' Shapefiles. e.g. \code{options(tigris_refresh=TRUE)}
1212
#'
1313
#' Use option \code{tigris_year} to change the year for which you'd like to download data.
14-
#' e.g. \code{options(tigris_year = 2017)}. The default year for the package is 2020.
14+
#' e.g. \code{options(tigris_year = 2017)}. The default year for the package is 2022.
1515
#'
1616
#' Use option \code{tigris_class} to specify the class of spatial object you'd like returned.
1717
#' The default is \code{"sf"} for simple features objects. If you'd like a legacy object

man/tigris.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)