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.
Consider the following
magrittr
/dplyr
pipe statement: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 hitreturn
there instead.It's a minor annoyance, but one I run into constantly when constructing long or complex
dplyr
chains.