[ESS] indentation styles

Jack Tanner ihok at hotmail.com
Thu Mar 29 19:26:07 CEST 2012


Vitalie Spinu <spinuvit <at> gmail.com> writes:

> 
> You can call ess-set-style to reset the style interactively, and
> investigate the difference. From the next version of ESS this command is
> also bound to [C-c .].

I ran ess-set-style interactively with a couple of different styles and applied
changes to a couple of different code blocks, but it made no difference. Perhaps
I'm doing this wrong, or perhaps my code is not something that would be
formatted differently. Could you give an example of a code block that would be
formatted differently, and a sequence of commands starting with ess-set-style
that would do this formatting?

Also, is there an indentation style that formats code like so:

foo <- list (
  a=3,
  b=5
)

instead of

foo <- list (
             a=3,
             b=5
)



More information about the ESS-help mailing list