Skip to content

Commit e8bc12a

Browse files
committed
forecast needs ... as a generic
1 parent 2f36cb8 commit e8bc12a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

R/epi_workflow.R

Lines changed: 2 additions & 1 deletion
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

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)