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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.