tests/testthat/_snaps/step-call.md

but not with anything else

Code
  dt %>% rename_with(1)
Condition
  Error in `rename_with()`:
  ! `.fn` must be a function name or formula

rename_with generates minimal spec

Code
  dt %>% rename_with(toupper) %>% show_query()
Output
  setnames(copy(DT), toupper)
Code
  dt %>% rename_with(toupper, 1:3) %>% show_query()
Output
  setnames(copy(DT), c("a", "b", "c"), toupper)

errors are raised

Code
  collect(drop_na(dt, "z"))
Condition
  Error in `drop_na()`:
  ! Can't subset columns that don't exist.
  x Column `z` doesn't exist.


Try the dtplyr package in your browser

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

dtplyr documentation built on March 31, 2023, 9:13 p.m.