Skip to content

Commit

Permalink
minor test bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wcurrangroome committed Mar 11, 2024
1 parent 181ff49 commit 9a90e62
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/testthat/test-compile_acs_data.R
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
####----Load Test Data----####

if (!(file.exists(here::here("tests", "test-data", paste0("tracts_all_states_2022_", Sys.Date(), ".csv"))))) {
# if (!(file.exists(here::here("tests", "test-data", paste0("tracts_all_states_2022_", Sys.Date(), ".csv"))))) {

## Statistics for all tracts
df = compile_acs_data(
variables = NULL,
year = c(2022),
geography = "tract",
states = NULL,
states = c("CA", "TX"),
counties = NULL,
retain_moes = TRUE)

readr::write_csv(df, here::here("tests", "test-data", paste0("tracts_all_states_2022_", Sys.Date(), ".csv"))) } else {
df = readr::read_csv(here::here("tests", "test-data", paste0("tracts_all_states_2022_", Sys.Date(), ".csv")))
}
# readr::write_csv(df, here::here("tests", "test-data", paste0("tracts_all_states_2022_", Sys.Date(), ".csv"))) } else {
# df = readr::read_csv(here::here("tests", "test-data", paste0("tracts_all_states_2022_", Sys.Date(), ".csv")))
# }

####----Tests----####

Expand Down

0 comments on commit 9a90e62

Please sign in to comment.