poissonconsulting / tidyplus

An R package of additional tidyverse functions
https://poissonconsulting.github.io/tidyplus/
Other
9 stars 0 forks source link

if_else2 should by default not error if nothing to replace #26

Open joethorley opened 12 hours ago

joethorley commented 12 hours ago

Otherwise going to end up with extremely fragile code plus if_else doesn't require replacement by default.

Error in `stopifnot()`:
ℹ In argument: `lotic = if_else2(blk == 356563941L & section == 2, FALSE, lotic)`.
ℹ In row 1.
Caused by error in `if_else2()`: