tests/testthat/_snaps/map-if-at.md

map_if requires predicate functions

Code
  map_if(1:3, ~NA, ~"foo")
Condition
  Error in `map_if()`:
  i In index: 1.
  Caused by error:
  ! `.p()` must return a single `TRUE` or `FALSE`, not `NA`.


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.