[ESS-bugs] Variable name affects indentation

Martin Maechler maechler at stat.math.ethz.ch
Sat Aug 18 10:51:13 CEST 2012


Dear Hendrik,

On Wed, Aug 15, 2012 at 3:15 AM, Hendrik Weisser
<weisser at imsb.biol.ethz.ch> wrote:
> Hi!
>
> Working with protein expression data, I've noticed that using the variable
> name "expression" breaks the indentation in my R code:
>
> What I expect to see:
> expression <- somefunction(longarg1,
>                            longarg2)
>
> What happens:
> expression <- somefunction(longarg1,
>     longarg2)
>
> I.e. the indentation at the level of the opening brackets after a line break
> doesn't work as usual (same for square brackets).

I can confirm.   This is a buglet.

> I assume this has
> something to do with "expression" being a pre-defined function in R.

Well, not really directly:  if I use  "data.frame" or "list" instead
of "expression",
the indentation is correct.

>
> It's just a little annoyance, but maybe it could be fixed nonetheless.

Yes, I hope we'll find a cure before the next release of ESS.
Martin

>
> Best regards
>
> Hendrik Weisser
>
> _______________________________________________
> ESS-bugs ESS-bugs at r-project.org
> https://stat.ethz.ch/mailman/listinfo/ess-bugs
>
> _______________________________________________
> ESS-core list: https://stat.ethz.ch/mailman/listinfo/ess-core
>



More information about the ESS-bugs mailing list