Skip to content

Commit

Permalink
patch urban areas for 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerke committed Mar 26, 2024
1 parent 9f2b55f commit 2f10909
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: tigris
Type: Package
Title: Load Census TIGER/Line Shapefiles
Version: 2.0.6
Date: 2024-01-23
Version: 2.1.1
Date: 2024-03-26
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
5 changes: 4 additions & 1 deletion R/metro_areas.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ urban_areas <- function(cb = FALSE, year = NULL, criteria = NULL, ...) {

} else {

if (!is.null(criteria) && criteria == "2020") {
if (year >= 2023) {
url <- sprintf("https://www2.census.gov/geo/tiger/TIGER%s/UAC/tl_%s_us_uac20.zip",
cyear, cyear)
} else if (!is.null(criteria) && criteria == "2020") {
if (year != 2020) {
stop("2020 criteria is only supported when `year` is set to 2020 at the moment.", call. = FALSE)
}
Expand Down
2 changes: 1 addition & 1 deletion R/tigris-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' Shapefiles. e.g. \code{options(tigris_refresh=TRUE)}
#'
#' Use option \code{tigris_year} to change the year for which you'd like to download data.
#' e.g. \code{options(tigris_year = 2017)}. The default year for the package is 2020.
#' e.g. \code{options(tigris_year = 2017)}. The default year for the package is 2022.
#'
#' Use option \code{tigris_class} to specify the class of spatial object you'd like returned.
#' The default is \code{"sf"} for simple features objects. If you'd like a legacy object
Expand Down
2 changes: 1 addition & 1 deletion man/tigris.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f10909

Please sign in to comment.