Skip to content

Commit

Permalink
Use CRAN dplyr to render snapshots for now
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisVaughan committed Dec 14, 2022
1 parent b4733a7 commit da3b600
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions tests/testthat/_snaps/step-subset-slice.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,55 @@
slice_head(dt, 5)
Condition
Error in `slice_head()`:
! `n` must be explicitly named.
i Did you mean `slice_head(n = 5)`?
! `...` must be empty.
x Problematic argument:
* ..1 = 5
i Did you forget to name an argument?
Code
slice_tail(dt, 5)
Condition
Error in `slice_tail()`:
! `n` must be explicitly named.
i Did you mean `slice_tail(n = 5)`?
! `...` must be empty.
x Problematic argument:
* ..1 = 5
i Did you forget to name an argument?
Code
slice_min(dt, x, 5)
Condition
Error in `slice_min()`:
! `n` must be explicitly named.
i Did you mean `slice_min(n = 5)`?
Error in `slice_min_max()`:
! `...` must be empty.
x Problematic argument:
* ..1 = 5
i Did you forget to name an argument?
Code
slice_max(dt, x, 5)
Condition
Error in `slice_max()`:
! `n` must be explicitly named.
i Did you mean `slice_max(n = 5)`?
Error in `slice_min_max()`:
! `...` must be empty.
x Problematic argument:
* ..1 = 5
i Did you forget to name an argument?
Code
slice_sample(dt, 5)
Condition
Error in `slice_sample()`:
! `n` must be explicitly named.
i Did you mean `slice_sample(n = 5)`?
! `...` must be empty.
x Problematic argument:
* ..1 = 5
i Did you forget to name an argument?

---

Code
slice_min(dt)
Condition
Error in `slice_min()`:
! `order_by` is absent but must be supplied.
! argument `order_by` is missing, with no default.
Code
slice_max(dt)
Condition
Error in `slice_max()`:
! `order_by` is absent but must be supplied.
! argument `order_by` is missing, with no default.

# check_slice_catches common errors

Expand Down

0 comments on commit da3b600

Please sign in to comment.