53 points | by sinnsro 2 days ago ago
4 comments
I had always wondered about the magrittr package name, but never enough to actually go find out. That's a cool origin.
I only recently discovered \(x) like function wrapping is not required! Where magrittr::%>% uses ., base R's |> can use _, but only for named arguments
penguins |> rpart::rpart(species ~ ., method = "class", data = _) |> rpart.plot::prp(extra = 4)
Refreshing to see such articles.
I had always wondered about the magrittr package name, but never enough to actually go find out. That's a cool origin.
I only recently discovered \(x) like function wrapping is not required! Where magrittr::%>% uses ., base R's |> can use _, but only for named arguments
EDIT: maybe that wasn't the case in 2021 when the blog post was writtenRefreshing to see such articles.