Skip to content

Commit

Permalink
Removing stringr dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mdblocker committed Dec 14, 2023
1 parent 74ba902 commit 8c5f68a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Depends:
Imports:
cli,
dplyr,
stringr,
tidyr,
furrr,
future,
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import(PL94171)
importFrom(Rcpp,evalCpp)
importFrom(dplyr,coalesce)
importFrom(dplyr,pull)
importFrom(stringr, str_glue)
importFrom(furrr,future_map_dfr)
importFrom(piggyback,pb_download)
importFrom(purrr,map_dfr)
Expand Down
2 changes: 1 addition & 1 deletion R/census_helper_v2.R
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ census_helper_new <- function(

## Calculate Pr(Geolocation | Race)
if (any(c("P2_005N", "P005003") %in% names(census))) {
message(stringr::str_glue("NOTE: Legacy column names detected, loading Race values from Census Redistricting table for {year}. Age, Sex, and ZCTA predictions will be unavailable."))
message(sprintf("NOTE: Legacy column names detected, loading Race values from Census Redistricting table for %s. Age, Sex, and ZCTA predictions will be unavailable.", year))
# TODO: Add test that we get the same ratios with legacy and new tables for 2020
# Old table: Redistricting (Pl-some numbers) (does not have age, sex, or ZCTAs)
# New table: DHC (does have age, sex, and ZCTA)
Expand Down

0 comments on commit 8c5f68a

Please sign in to comment.