tests/testthat/_snaps/slide-period2.md

empty input returns a list, but after the index size check

Code
  (expect_error(slide_period2(.x = integer(), .y = integer(), .i = structure(0,
    class = "Date"), .period = "day", .f = ~.x), class = "slider_error_index_incompatible_size")
  )
Output
  <error/slider_error_index_incompatible_size>
  Error in `slide_period2()`:
  ! `.i` must have size 0, not 1.


Try the slider package in your browser

Any scripts or data that you put into this service are public.

slider documentation built on Oct. 12, 2023, 5:11 p.m.