Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Editor: automatic formatting prevents insertion of new line using return key inside magrittr pipe statements #4339

Open
mkoohafkan opened this issue Sep 20, 2018 · 0 comments

Comments

@mkoohafkan
Copy link

mkoohafkan commented Sep 20, 2018

Consider the following magrittr/dplyr pipe statement:

mtcars %>%                   # line 1
  filter(carb < 4) %>%       # line 2
  select(mpg, cyl)           # line 3 

When automatic formatting is turned on, hitting the return key when the cursor is placed at the beginning of line 2 does not create a new line. You must instead place the cursor on the end of line 1 and hit return there instead.

It's a minor annoyance, but one I run into constantly when constructing long or complex dplyr chains.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant