How to fast insert new 'pipe operator' in Rstudio?

Viewed 3312

I have been using the ctrl + shift + m shortcut to insert well known %>% pipe operator. Since the release of R version 4.1.0 and adding a new |> to base, I wonder is the corresponding shortcut available in Rstudio?

1 Answers

It's the same shortcut. If you install the latest version of the IDE, and go to the Global Options window, select "Code" and you'll see an option for "use native pipe operator, |>". Select that for the shortcut to take effect.

enter image description here

Related