1414# ' same name. The regions listed in the \code{include} parameter are applied first and the
1515# ' \code{exclude} regions are then removed from the resulting map. Any excluded regions
1616# ' not present in the included regions will be ignored.
17- # ' @param as_sf DEPRECATED. This parameter has no effect and will be removed in
17+ # ' @param as_sf Defunct, this parameter no longer has any effect and will be removed in
1818# ' the future.
1919# '
2020# ' @return An `sf` data frame of US map coordinates divided by the desired \code{regions}.
@@ -36,10 +36,6 @@ us_map <- function(
3636) {
3737 regions <- match.arg(regions )
3838
39- if (! missing(" as_sf" ))
40- warning(" `as_sf` is deprecated and no longer has any effect, all data is
41- returned as an `sf` object." )
42-
4339 if (regions == " state" ) regions <- " states"
4440 else if (regions == " county" ) regions <- " counties"
4541
@@ -70,7 +66,7 @@ us_map <- function(
7066# ' @param regions The region breakdown for the map, can be one of
7167# ' (\code{"states"}, \code{"counties"}, as specified by the internal file names.
7268# ' The default is \code{"states"}.
73- # ' @param as_sf DEPRECATED. This parameter has no effect and will be removed in
69+ # ' @param as_sf Defunct, this parameter no longer has any effect and will be removed in
7470# ' the future.
7571# '
7672# ' @return An `sf` data frame of state or county centroid labels and positions
@@ -83,10 +79,6 @@ centroid_labels <- function(
8379) {
8480 regions <- match.arg(regions )
8581
86- if (! missing(" as_sf" ))
87- warning(" `as_sf` is deprecated and no longer has any effect, all data is
88- returned as an `sf` object." )
89-
9082 sf :: read_sf(
9183 system.file(" extdata" , paste0(" us_" , regions , " _centroids.gpkg" ),
9284 package = " usmapdata" )
0 commit comments