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 select 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.


tidyverse/tidyr documentation built on Oct. 30, 2024, 1:53 a.m.