Skip to content

Commit 5f5c470

Browse files
authored
Merge pull request #470 from dylanhmorris/dylanhmorris-fix-flusight-hub-formatter
Fix flusight hub formatter
2 parents 71aa520 + cb8fcde commit 5f5c470

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: epipredict
22
Title: Basic epidemiology forecasting methods
3-
Version: 0.2.0
3+
Version: 0.2.1
44
Authors@R: c(
55
person("Daniel J.", "McDonald", , "[email protected]", role = c("aut", "cre")),
66
person("Ryan", "Tibshirani", , "[email protected]", role = "aut"),

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Pre-1.0.0 numbering scheme: 0.x will indicate releases, while 0.0.x will indicate PR's.
44

5+
# epipredict 0.2.1
6+
7+
- Fix bug in `flusight_hub_formatter()` so that it works as expected even if the user has not first loaded the `epidatasets` package.
8+
59
# epipredict 0.2
610

711
## Breaking changes

R/flusight_hub_formatter.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
location_to_abbr <- function(location) {
22
dictionary <-
3-
state_census %>%
3+
epidatasets::state_census %>%
44
dplyr::transmute(
55
location = dplyr::case_match(fips, "00" ~ "US", .default = fips),
66
abbr
@@ -10,7 +10,7 @@ location_to_abbr <- function(location) {
1010

1111
abbr_to_location <- function(abbr) {
1212
dictionary <-
13-
state_census %>%
13+
epidatasets::state_census %>%
1414
dplyr::transmute(
1515
location = dplyr::case_match(fips, "00" ~ "US", .default = fips),
1616
abbr

man/autoplot-epipred.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/step_adjust_latency.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)