tests/testthat/_snaps/superseded-flatten.md

input must be a list

Code
  flatten(1)
Condition
  Error in `flatten()`:
  ! `.x` must be a list, not a number.
Code
  flatten_dbl(1)
Condition
  Error in `flatten_dbl()`:
  ! `.x` must be a list, not a number.

contents of list must be supported types

Code
  flatten(list(quote(a)))
Condition
  Error in `flatten()`:
  ! `.x[[1]]` must be a vector, not a symbol.
Code
  flatten(list(expression(a)))
Condition
  Error in `flatten()`:
  ! `.x[[1]]` must be a vector, not an expression vector.

must be a list

Code
  flatten_lgl(1)
Condition
  Error in `flatten_lgl()`:
  ! `.x` must be a list, not a number.


Try the purrr package in your browser

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

purrr documentation built on Aug. 10, 2023, 9:08 a.m.