[ESS] Indenting with magrittr and %>%

Alex Branham alex.branham at gmail.com
Thu Mar 22 19:48:12 CET 2018


On Thu 22 Mar 2018 at 13:44, William Denton <wtd at pobox.com> wrote:

> I'm a big fan of %>% from magrittr and the tidyverse, but I can't get indenting
> working with it.  I have a long chain of pipes that I'd like to line up one by
> one on different lines, but they just end up flush left.
>
> Can anyone point me to their configuration that makes %>% indents work nicely?

If I understand correctly, you want to set 'ess-offset-continued' to
'cascade. But that'll affect all continued functions, not just pipes. I
don't think there's a way to control pipes specifically.

Alex



More information about the ESS-help mailing list