Skip to content

Commit

Permalink
doc: fix vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
dshemetov committed Sep 27, 2024
1 parent b3e3189 commit 374cb2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/layer_add_forecast_date.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ slather.layer_add_forecast_date <- function(object, components, workflow,
workflows::extract_preprocessor(workflow)$template, "metadata"
)$time_type
if (expected_time_type == "week") expected_time_type <- "day"
if (expected_time_type == "integer") expected_time_type <- "year"
validate_date(
forecast_date, expected_time_type,
call = rlang::expr(layer_add_forecast_date())
Expand Down
1 change: 1 addition & 0 deletions R/layer_add_target_date.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ slather.layer_add_target_date <- function(object, components, workflow,
workflows::extract_preprocessor(workflow)$template, "metadata"
)$time_type
if (expected_time_type == "week") expected_time_type <- "day"
if (expected_time_type == "integer") expected_time_type <- "year"

if (!is.null(object$target_date)) {
target_date <- object$target_date
Expand Down

0 comments on commit 374cb2f

Please sign in to comment.