Closed emmansh closed 3 years ago
Now that base R also has syntax for lambda functions there's not as much benefit in supporting tidyverse lambdas.
Also magrittr currently has zero dependencies and we probably don't want to add one just for that. rlang is already in Suggests so we could check for a formula, check that rlang is installed, and then call rlang::as_function()
.
You're welcome to send a PR but there is no release planned in the immediate future. It might be years until that makes it to CRAN in the very worst case, at which point the transition to native lambdas will have made much progress.
@lionel- thanks. Could you demonstrate how you'd use rlang::as_function()
in this example (i.e., assuming it's installed)?
oh if you just want to transform on your side then it's simply:
lapply(my_3_operations_lambda, rlang::as_function)
OK then, I'll live with that hack :)
Thanks.
Why doesn't
magrittr::freduce()
support lambda functions?Created on 2021-10-26 by the reprex package (v2.0.1)