[ESS] Indenting with magrittr and %>%

Ista Zahn |@t@z@hn @end|ng |rom gm@||@com
Thu Mar 22 19:56:27 CET 2018


Hi Bill,

It will be helpful to give some R code and show how you want it indented ...

Best,
Ista

On Thu, Mar 22, 2018 at 2:44 PM, William Denton <wtd using 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?
>
> This is what I have now (it's a bit jumbled):
>
> https://github.com/wdenton/.emacs.d/blob/master/setup/setup-ess.el
>
> Thanks,
>
> Bill
>
> --
> William Denton :: Toronto, Canada   ---   Listening to Art:
> https://listeningtoart.org/
> https://www.miskatonic.org/         ---   GHG.EARTH: http://ghg.earth/
> Caveat lector.                      ---   STAPLR: http://staplr.org/
>
> ______________________________________________
> ESS-help using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help




More information about the ESS-help mailing list