Skip to content

Commit 047caa6

Browse files
committed
validate scalar forecast_date
1 parent 6d5c379 commit 047caa6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/layer_add_forecast_date.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ layer_add_forecast_date <-
7979

8080
layer_add_forecast_date_new <- function(forecast_date, id) {
8181
arg_is_chr_scalar(id)
82+
arg_is_scalar(forecast_date, allow_null = TRUE)
8283
# can't validate forecast_date until we know the time_type
8384
layer("add_forecast_date", forecast_date = forecast_date, id = id)
8485
}

0 commit comments

Comments
 (0)