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

Update to base R pipe |> from magrittr %>%? #68

Open
Lextuga007 opened this issue Nov 15, 2022 · 2 comments
Open

Update to base R pipe |> from magrittr %>%? #68

Lextuga007 opened this issue Nov 15, 2022 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Lextuga007
Copy link
Member

Following the update that's being written for R4DS the move to the base R pipe is recommended which will require updates to the introduction course and materials.

Tagged this as a question as it's open for discussion on which pipe to use/teach.

@Lextuga007 Lextuga007 added enhancement New feature or request question Further information is requested labels Nov 15, 2022
@Lextuga007 Lextuga007 removed the question Further information is requested label Dec 1, 2022
@Lextuga007
Copy link
Member Author

This was discussed on the NHS-R Slack #training channel and responses were positive on teaching the new pipe. Things to note for reference too could be:

x %>% y is valid if y is a function, but you have to use x |> y()

and the . which was automatically fed from {magrittr}'s %>% is:

x |> f(thing, y = _) use _ inplace of .

Finally, the version of R matters and needs to be >4.1 or 4.2 - on the cloud this won't be an issue though.

@Lextuga007 Lextuga007 added help wanted Extra attention is needed good first issue Good for newcomers labels Dec 1, 2022
@Lextuga007
Copy link
Member Author

Flags for good first issue as much of this can be recoded but some thought needed to where the pipes can be explained a bit more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant