tests/testthat/_snaps/by.md

throws tidyselect errors

Code
  compute_by(by = y, data = df)
Condition
  Error:
  ! Can't subset columns that don't exist.
  x Column `y` doesn't exist.

can't set .by with a grouped-df

Code
  compute_by(x, gdf)
Condition
  Error:
  ! Can't supply `by` when `data` is a grouped data frame.

can't set .by with a rowwise-df

Code
  compute_by(x, rdf)
Condition
  Error:
  ! Can't supply `by` when `data` is a rowwise data frame.

can tweak the error args

Code
  compute_by(x, gdf, by_arg = "x", data_arg = "dat")
Condition
  Error:
  ! Can't supply `x` when `dat` is a grouped data frame.


Try the dplyr package in your browser

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

dplyr documentation built on Nov. 17, 2023, 5:08 p.m.