Re:Parsing R code: Freedom of expression is not always a goo...
by tfehring on Tuesday June 14, 2022 @11:58AM
(#31741313)
I like this syntax better than the new lambda syntax, but I think it's good that a proper lambda syntax exists now. Not all higher-order functions accept formulas (they have to wrap their function arguments with rlang::as_function or equivalent), and there are probably some obscure cases where the distinction between a formula and a function matters.
~ . + 1 ~ .x + .y