Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f47b124

Browse files
committedMar 7, 2025·
forecast needs ... as a generic
1 parent 2fa0d67 commit f47b124

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed
 

‎R/epi_workflow.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ print.epi_workflow <- function(x, ...) {
241241
#' `get_test_data()` and `predict()`.
242242
#'
243243
#' @param object An epi workflow.
244+
#' @param ... Not used.
244245
#'
245246
#' @return A forecast tibble.
246247
#'
@@ -257,7 +258,7 @@ print.epi_workflow <- function(x, ...) {
257258
#' epi_workflow(r, parsnip::linear_reg()) %>%
258259
#' fit(jhu) %>%
259260
#' forecast()
260-
forecast.epi_workflow <- function(object) {
261+
forecast.epi_workflow <- function(object, ...) {
261262
if (!object$trained) {
262263
cli_abort(c(
263264
"You cannot `forecast()` a {.cls workflow} that has not been trained.",

‎man/forecast.epi_workflow.Rd

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎man/layer_unnest.Rd

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.