tests/testthat/_snaps/detect.md

detect() requires a predicate function

Code
  detect(list(1:2, 2), is.na)
Condition
  Error in `detect()`:
  ! `.f()` must return a single `TRUE` or `FALSE`, not a logical vector.
Code
  detect_index(list(1:2, 2), is.na)
Condition
  Error in `detect_index()`:
  ! `.f()` must return a single `TRUE` or `FALSE`, not a logical vector.


Try the purrr package in your browser

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

purrr documentation built on Jan. 9, 2026, 5:08 p.m.