Skip to content

Commit 374cb2f

Browse files
committed
doc: fix vignettes
1 parent b3e3189 commit 374cb2f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

R/layer_add_forecast_date.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ slather.layer_add_forecast_date <- function(object, components, workflow,
104104
workflows::extract_preprocessor(workflow)$template, "metadata"
105105
)$time_type
106106
if (expected_time_type == "week") expected_time_type <- "day"
107+
if (expected_time_type == "integer") expected_time_type <- "year"
107108
validate_date(
108109
forecast_date, expected_time_type,
109110
call = rlang::expr(layer_add_forecast_date())

R/layer_add_target_date.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ slather.layer_add_target_date <- function(object, components, workflow,
9090
workflows::extract_preprocessor(workflow)$template, "metadata"
9191
)$time_type
9292
if (expected_time_type == "week") expected_time_type <- "day"
93+
if (expected_time_type == "integer") expected_time_type <- "year"
9394

9495
if (!is.null(object$target_date)) {
9596
target_date <- object$target_date

0 commit comments

Comments
 (0)