Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# [unreleased]

### Removed
* The `as_sf` parameter has been completely removed from `us_map()`, `centroid_labels()`, and `fips_data()`.
* It was no longer used by `usmap` nor did it have any effect if set.
* Any existing code that sets it can safely delete it from `usmapdata` function calls.

# usmapdata 0.5.0
Released Thursday, May 22, 2025.

Expand Down Expand Up @@ -45,7 +50,6 @@ Released Sunday, February 4, 2024.
This update continues the `sf` migration by setting the `as_sf` parameter to default to the behavior of `TRUE`. This parameter no longer has any effect, as explained below. The next phase will involve updating `usmap` to no longer make use of this parameter, in which case it can be completely removed.

### Removed

* The `as_sf` parameter is now deprecated and no longer has any effect.
* As part of this removal, the default behavior for `us_map()`, `centroid_labels()`, and `fips_data()` is equivalent to `as_sf = TRUE` which is to return their data as an `sf` object (see `0.2.0` release notes for more details).
* This parameter will be completely removed in a future version but continues to exist for compatibility reasons.
Expand Down
1 change: 0 additions & 1 deletion R/fips-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#' @export
fips_data <- function(
regions = c("states", "state", "counties", "county"),
as_sf = TRUE,
data_year = NULL
) {
regions <- match.arg(regions)
Expand Down
4 changes: 0 additions & 4 deletions R/us-map.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
#' same name. The regions listed in the \code{include} parameter are applied first and the
#' \code{exclude} regions are then removed from the resulting map. Any excluded regions
#' not present in the included regions will be ignored.
#' @param as_sf Defunct, this parameter no longer has any effect and will be removed in
#' the future.
#' @param data_year The year for which to obtain map data.
#' If the value is \code{NULL}, the most recent year's data is used. If the
#' provided year is not found from the available map data sets, the next most
Expand All @@ -41,7 +39,6 @@ us_map <- function(
regions = c("states", "state", "counties", "county"),
include = c(),
exclude = c(),
as_sf = TRUE,
data_year = NULL
) {
regions <- match.arg(regions)
Expand Down Expand Up @@ -80,7 +77,6 @@ us_map <- function(
#' @export
centroid_labels <- function(
regions = c("states", "state", "counties", "county"),
as_sf = TRUE,
data_year = NULL
) {
regions <- match.arg(regions)
Expand Down
4 changes: 0 additions & 4 deletions man/centroid_labels.Rd

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

4 changes: 0 additions & 4 deletions man/fips_data.Rd

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

4 changes: 0 additions & 4 deletions man/us_map.Rd

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