From e0188ce0f37126ab68a720eecafafb6030af379a Mon Sep 17 00:00:00 2001 From: "Logan C. Brooks" Date: Fri, 21 Jun 2024 17:57:48 -0700 Subject: [PATCH] Mention trailing commas as possible cause of slide ... error --- R/utils.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/utils.R b/R/utils.R index a7f7649f..1e1dc440 100644 --- a/R/utils.R +++ b/R/utils.R @@ -321,7 +321,8 @@ as_slide_computation <- function(f, ...) { if (rlang::dots_n(...) > 0L) { cli_abort( "No arguments can be passed via `...` when `f` is a formula, or there - are unrecognized/misspelled parameter names.", + are unrecognized/misspelled parameter names, or there is a trailing + comma in the `epi[x]_slide()` call.", class = "epiprocess__as_slide_computation__formula_with_dots", epiprocess__f = f, epiprocess__enquos_dots = enquos(...)