From 57df54c2fa5903ca3c9aae9b6cf37a3c8a367364 Mon Sep 17 00:00:00 2001 From: Dmitry Shemetov Date: Wed, 2 Oct 2024 20:00:27 -0700 Subject: [PATCH] fix: add readr --- DESCRIPTION | 1 + data-raw/state_census.R | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 0834489d..2bd433f6 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -60,6 +60,7 @@ Suggests: quantreg, ranger, RcppRoll, + readr, rmarkdown, smoothqr, testthat (>= 3.0.0), diff --git a/data-raw/state_census.R b/data-raw/state_census.R index 9cd495ce..cfa74d38 100644 --- a/data-raw/state_census.R +++ b/data-raw/state_census.R @@ -1,7 +1,7 @@ library(dplyr) library(tidyr) -state_census <- read_csv("https://github.com/cmu-delphi/covidcast/raw/c89e4d295550ba1540d64d2cc991badf63ad04e5/Python-packages/covidcast-py/covidcast/geo_mappings/state_census.csv") %>% +state_census <- readr::read_csv("https://github.com/cmu-delphi/covidcast/raw/c89e4d295550ba1540d64d2cc991badf63ad04e5/Python-packages/covidcast-py/covidcast/geo_mappings/state_census.csv") %>% # nolint: line_length_linter select(STATE, NAME, POPESTIMATE2019, ABBR) %>% rename(abbr = ABBR, name = NAME, pop = POPESTIMATE2019, fips = STATE) %>% mutate(abbr = tolower(abbr)) %>%