You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks so much for your work on this package. Its a really great idea!
Don't know if its possible, but I'd love to use the native pipe |> (introduced in R 4.1) in my packages without forcing everyone on less recent version to update.
Is this possible / in scope for backports
If not, do you have any ideas for alternative solutions?
The text was updated successfully, but these errors were encountered:
I am pretty sure that's not possible, because |> is not legal syntax in the earlier versions. I don't know any good workaround, but it might be possible to maintain two sets of sources for your functions: one that works in R 4.1, and one that works in earlier versions, which can be produced automatically by deparsing your code (since x |> f() deparses to f(x)). It would need a lot of care to get it right and keep it right, and probably isn't worth doing.
The alternative, much easier, way to support pre-4.1 R is to use magrittr pipes instead. Or just skip pipes in your source code.
Hi,
Thanks so much for your work on this package. Its a really great idea!
Don't know if its possible, but I'd love to use the native pipe
|>
(introduced in R 4.1) in my packages without forcing everyone on less recent version to update.Is this possible / in scope for backports
If not, do you have any ideas for alternative solutions?
The text was updated successfully, but these errors were encountered: