Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

|> becomes a first class piping operator #89

Closed
xiaodaigh opened this issue Feb 13, 2019 · 2 comments
Closed

|> becomes a first class piping operator #89

xiaodaigh opened this issue Feb 13, 2019 · 2 comments

Comments

@xiaodaigh
Copy link

In the magrittr package the %>% is defined as a piping operator. If we can define the same functionality as %>% by defining |> as a valid token in the R language then it would great

@dieghernan
Copy link

I think this one is coming...

https://www.tidyverse.org/blog/2020/11/magrittr-2-0-is-here/

@HenrikBengtsson
Copy link
Owner

The |> pipe token was added to R 4.1.0 (2021-05-18). From the R 4.1.0 release notes:

This is a major update, notably containing the new native pipe operator "|>" and 
shorthand inline functions "\(x) x+1".
...
    * R now provides a simple native forward pipe syntax |>.  The
      simple form of the forward pipe inserts the left-hand side as the
      first argument in the right-hand side call.  The pipe
      implementation as a syntax transformation was motivated by
      suggestions from Jim Hester and Lionel Henry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants