[R] Google's R Style Guide
hadley wickham
h.wickham at gmail.com
Fri Aug 28 18:11:41 CEST 2009
> An opening curly brace should never go on its own line and should always be followed by a new line; a closing curly brace should always go on its own line.
>
> It seems to me that the opening an dosing curly brace should go on their own lines to allow the reader to immediately know what is encompassed in the curly brace:
In my view, that's the purpose of indenting - you see scope from
indenting. Again, that's just my personal preference, and while I can
make my students follow it, I don't expect the rest of the world to
fall in line (although it would be nice ;)
Hadley
--
http://had.co.nz/
More information about the R-help
mailing list