styleguide
styleguide copied to clipboard
Example Function 'CalculateSampleCovariance' in the R Style Guide mixes use and omission of curly braces for single-statement blocks.
What steps will reproduce the problem?
The function definition is at
http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html
What is the expected output? What do you see instead?
As stated earlier in the style guide, curly braces should be used or not used
consistently when dealing with single-statement blocks. In the example
function 'CalculateSampleCovariance', curly braces are used in the
single-statement blocks following the first two if statements and not the
single-statement block following the third.
Original issue reported on code.google.com by [email protected] on 14 Aug 2010 at 3:47