Skip to content

Commit

Permalink
Mention trailing commas as possible cause of slide ... error
Browse files Browse the repository at this point in the history
  • Loading branch information
brookslogan committed Jun 22, 2024
1 parent 3d4e498 commit e0188ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -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(...)
Expand Down

0 comments on commit e0188ce

Please sign in to comment.