Open Lextuga007 opened 1 year ago
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.
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.
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.