However, it feels like a waste to replace a with the output of assert_numeric (which is of course equal to a). Would it be possible to instead have a dplyr style function along the lines of:
tibble(a = c(1,2)) |>
check(test_numeric(a)) |>
# continue with pipe
where check() does dplyr style data-masking and then just returns its input (or raises an error).
At present the following works:
However, it feels like a waste to replace
a
with the output ofassert_numeric
(which is of course equal toa
). Would it be possible to instead have adplyr
style function along the lines of:where
check()
doesdplyr
style data-masking and then just returns its input (or raises an error).