tests/testthat/_snaps/lmap.md

validates inputs

Code
  lmap(list(1), ~1)
Condition
  Error in `lmap()`:
  ! `.f(.x[[1]])` must return a list, not a number.
Code
  lmap(list(1), environment())
Condition
  Error in `lmap()`:
  ! Can't convert `.f`, an environment, to a function.
Code
  lmap(list(1), ~1, .else = environment())
Condition
  Error in `lmap()`:
  ! Can't convert `.else`, an environment, to a function.


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.