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
Hi, thanks a lot for maintaining plyranges — I really enjoy using it!
I just noticed a small inconsistency when trying out the new base R pipe. With %>% everything works fine, but when I switch to |> the code breaks specifically for mutate().
ir1 <- data.frame(start = 2:6, width = 3:7) |>
as_iranges()
ir1 |>
mutate(gc = width(.))
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'width': object '.' not found
I guess this might be related to how mutate() captures the . argument under %>%. Totally understand that supporting |> might introduce stricter R version requirements, but maybe there’s a workaround or at least a note in the docs to make this clear?