tests/testthat/_snaps/keep.md

keep() and discard() require predicate functions

Code
  keep(1:3, ~NA)
Condition
  Error in `keep()`:
  i In index: 1.
  Caused by error:
  ! `.p()` must return a single `TRUE` or `FALSE`, not `NA`.
Code
  discard(1:3, ~NA)
Condition
  Error in `discard()`:
  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.