[ESS] indentation after an incomplete assignment?

Douglas Bates bates at stat.wisc.edu
Sun Jun 5 00:58:45 CEST 2011


The general assumption in ESS is that you will use the one true
assignment operator, <-, and not that upstart sort-of but not all the
time, assignment operator, =.

Note that in ESS an underscore gets expanded to ' <- ' so it is
actually easier to type the preferred assignment operator than to type
' = '.

On Sat, Jun 4, 2011 at 4:01 PM, Yihui Xie <xie at yihui.name> wrote:
> Hi all,
>
> Is there a way to make the indentation of an assigning expression
> using `=` similar to the one using `<-`? e.g.
>
> when we use =, we get this:
>
> a = c(1, 2,
> 3, 4)
>
> but <- leads to this:
>
> a <- c(1, 2,
>          3, 4)
>
> is there a way to let ESS indent like this?
>
> a = c(1, 2,
>         3, 4)
>
> Thanks a lot!
>
> Regards,
> Yihui
> --
> Yihui Xie <xieyihui at gmail.com>
> Phone: 515-294-2465 Web: http://yihui.name
> Department of Statistics, Iowa State University
> 2215 Snedecor Hall, Ames, IA
>
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>



More information about the ESS-help mailing list