How can I update the Control + Shift > M shortcut to use the new pipe?

I'm on R 4.1.1 within Rstudio.

Both these work:

mtcars %>% summary()
mtcars |> summary()

I can shortcut the %>% version using Control + Shift then 'm' on my keyboard. My question is can I / should I change this shortcut to use the new pipe version |>? If so how?

You can change CTRL + Shift + M to the new pipe by selecting the menu Tools -> Global Options, clicking the Code icon on the left and choosing the Editing tab in the dialog. There is a check box for Use Native Pipe Operator on that tab.

2 Likes

Thanks but I'm not seeing this option. Screen shot:

Which version of R Studio do you have? I have RStudio 2021.09.0+351 "Ghost Orchid".

How do I find this out? I'm browsing all the menus :confused:

The menu Help -> About RStudio. There is a button labeled Copy Version which will put a lot of information about your RStudio version on the clipboard.

Ah thanks. Here:

Version 1.4.1106
© 2009-2021 RStudio, PBC
"Tiger Daylily" (2389bc24, 2021-02-11) for Ubuntu Bionic
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36

Guess I need to upgrade? Is there a point and click for that?

I just download from

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.