tests/testthat/_snaps/separate-longer.md

separate_longer_delim() validates its inputs

Code
  df %>% separate_longer_delim()
Condition
  Error in `separate_longer_delim()`:
  ! `cols` is absent but must be supplied.
Code
  df %>% separate_longer_delim(x, sep = 1)
Condition
  Error in `separate_longer_delim()`:
  ! `delim` must be a single string, not absent.

separate_longer_position() validates its inputs

Code
  df %>% separate_longer_position()
Condition
  Error in `separate_longer_position()`:
  ! `cols` is absent but must be supplied.
Code
  df %>% separate_longer_position(y, width = 1)
Condition
  Error in `separate_longer_position()`:
  ! Can't subset columns that don't exist.
  x Column `y` doesn't exist.
Code
  df %>% separate_longer_position(x, width = 1.5)
Condition
  Error in `separate_longer_position()`:
  ! `width` must be a whole number, not the number 1.5.


Try the tidyr package in your browser

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

tidyr documentation built on Feb. 16, 2023, 7:40 p.m.