> na_if(1:3, 1:2)
Error: `y` must be length 3 (same as `x`) or one, not 2.

> na_if(1, 1:2)
Error: `y` must be length 1 (same as `x`), not 2.

