tests/testthat/_snaps/head-tail.md

head_while and tail_while require predicate function

Code
  head_while(1:3, ~NA)
Condition
  Error in `head_while()`:
  ! `.p()` must return a single `TRUE` or `FALSE`, not `NA`.
Code
  tail_while(1:3, ~ c(TRUE, FALSE))
Condition
  Error in `tail_while()`:
  ! `.p()` 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 Aug. 10, 2023, 9:08 a.m.