diff --git a/DESCRIPTION b/DESCRIPTION index 1d04a3b2..ae08a35c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: epipredict Title: Basic epidemiology forecasting methods -Version: 0.2.0 +Version: 0.2.1 Authors@R: c( person("Daniel J.", "McDonald", , "daniel@stat.ubc.ca", role = c("aut", "cre")), person("Ryan", "Tibshirani", , "ryantibs@cmu.edu", role = "aut"), diff --git a/NEWS.md b/NEWS.md index 814bfb67..c851711c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,10 @@ Pre-1.0.0 numbering scheme: 0.x will indicate releases, while 0.0.x will indicate PR's. +# epipredict 0.2.1 + +- Fix bug in `flusight_hub_formatter()` so that it works as expected even if the user has not first loaded the `epidatasets` package. + # epipredict 0.2 ## Breaking changes diff --git a/R/flusight_hub_formatter.R b/R/flusight_hub_formatter.R index 3deba254..4b12c94d 100644 --- a/R/flusight_hub_formatter.R +++ b/R/flusight_hub_formatter.R @@ -1,6 +1,6 @@ location_to_abbr <- function(location) { dictionary <- - state_census %>% + epidatasets::state_census %>% dplyr::transmute( location = dplyr::case_match(fips, "00" ~ "US", .default = fips), abbr @@ -10,7 +10,7 @@ location_to_abbr <- function(location) { abbr_to_location <- function(abbr) { dictionary <- - state_census %>% + epidatasets::state_census %>% dplyr::transmute( location = dplyr::case_match(fips, "00" ~ "US", .default = fips), abbr diff --git a/man/autoplot-epipred.Rd b/man/autoplot-epipred.Rd index 03cba3e2..2de338e1 100644 --- a/man/autoplot-epipred.Rd +++ b/man/autoplot-epipred.Rd @@ -75,7 +75,7 @@ this color.} \item{.facet_filter}{Select which facets will be displayed. Especially useful for when there are many \code{geo_value}'s or keys. This is a -<\code{\link[=args_data_masking]{rlang}}> expression along the lines of \code{\link[dplyr:filter]{dplyr::filter()}}. +<\code{\link[rlang:args_data_masking]{rlang}}> expression along the lines of \code{\link[dplyr:filter]{dplyr::filter()}}. However, it must be a single expression combined with the \code{&} operator. This contrasts to the typical use case which allows multiple comma-separated expressions which are implicitly combined with \code{&}. When multiple variables are selected diff --git a/man/step_adjust_latency.Rd b/man/step_adjust_latency.Rd index 01943440..d0d6c3ef 100644 --- a/man/step_adjust_latency.Rd +++ b/man/step_adjust_latency.Rd @@ -17,11 +17,11 @@ step_adjust_latency( ) } \arguments{ -\item{recipe}{A recipe object. The step will be added to the -sequence of operations for this recipe.} +\item{recipe}{A recipe object. The step will be added to the sequence of +operations for this recipe.} -\item{...}{One or more selector functions to choose variables -for this step. See \code{\link[recipes:selections]{selections()}} for more details.} +\item{...}{One or more selector functions to choose variables for this step. +See \code{\link[recipes:selections]{selections()}} for more details.} \item{method}{a character. Determines the method by which the forecast handles latency. The options are: