Skip to content

Commit

Permalink
fix: update error message about scalar slide_computations
Browse files Browse the repository at this point in the history
  • Loading branch information
dshemetov committed Sep 10, 2024
1 parent 73f405c commit c2c0011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/slide.R
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ epi_slide_one_group <- function(
# Returned values must always be a scalar vector or a data frame with one row.
if (any(vctrs::list_sizes(slide_values_list) != 1L)) {
cli_abort(
"The slide computations must either (a) output a single element/row each or
(b) one element/row per appearance of the reference time value in the local window.",
"epi_slide: slide computations must return a single element (e.g. a scalar value, a single data.frame row,
or a list).",
class = "epiprocess__invalid_slide_comp_value"
)
}
Expand Down

0 comments on commit c2c0011

Please sign in to comment.