Skip to content

Commit

Permalink
add forcats as import
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitejohnson committed Jul 18, 2024
1 parent d1d9ca7 commit abe25c9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion wweval/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ Imports:
scoringutils,
tibble,
cfaforecastrenewalww,
cmdstanr (>= 0.7.1)
cmdstanr (>= 0.7.1),
forcats
SystemRequirements: CmdStan (>=2.34.1)
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
Expand Down
1 change: 1 addition & 0 deletions wweval/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ importFrom(dplyr,rename)
importFrom(dplyr,row_number)
importFrom(dplyr,select)
importFrom(dplyr,ungroup)
importFrom(forcats,fct_reorder)
importFrom(ggplot2,aes)
importFrom(ggplot2,facet_grid)
importFrom(ggplot2,facet_wrap)
Expand Down
2 changes: 1 addition & 1 deletion wweval/R/manuscript_figs.R
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ make_fig3_rel_crps_by_location <- function(scores,
#'
#' @param scores A tibble of scores by location, forecast date, date and model,
#' the ouput of `scoringutils::score()` on samples.
#' #' @param horizons_to_show A vector of strings indicating the names of the
#' @param horizons_to_show A vector of strings indicating the names of the
#' `horizon` that we want to show on the plot, must be a subset of
#' `nowcast`, `1 wk`, `2 wks`,`3 wks`, `4 wks` and `overall`
#'
Expand Down
1 change: 1 addition & 0 deletions wweval/R/wweval-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
#' @importFrom colorspace scale_fill_continuous_diverging
#' @importFrom cmdstanr cmdstan_model
#' @importFrom data.table as.data.table
#' @importFrom forcats fct_reorder
NULL
5 changes: 3 additions & 2 deletions wweval/man/make_fig3_rel_crps_overall.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit abe25c9

Please sign in to comment.