Re: Style: avoid new lines in chains of square brackets [][]
Jeremie Juste via ESS-help <[email protected]>
| Newsgroups | gmane.emacs.ess.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Vincent, On Wednesday, 2 Jun 2021 at 09:14, Vincent Arel-Bundock via ESS-help wrote: > Hi all, > > Thanks for your awesome work on ESS! > > I use the data.table package with chains of square brackets, and would like to indent my code as follows: > > library(data.table) > dat = data.table(mtcars) > dat[ > cyl == 4][ > , gear := gear * 3] > > However, when I type this code, new lines get inserted automatically and I get this: > > dat[ > cyl == 4 > ][ > , gear := gear * 3 > ] I cannot reproduce this behavior. Could you try with a vanilla emacs? In the terminal $ emacs -Q then execute (add-to-list 'load-path "path to ess") (require 'ess-site) Can you still reproduce the behavior? If yes, could you specify which OS, emacs version and ESS version are you currently using? HTH, Jeremie ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/ess-help