beautypg.com

Style guides specify program structure – Google RLint: Reformatting R Code to Follow the Google Style Guide User Manual

Page 6

background image

Google Confidential and Proprietary

Style guides specify program structure

Google R style guide

specifies

● identifier naming:

variable.name

,

FunctionName

,

kConstantName

● layout: indentation, spacing, ...
● comments
● function commenting
● ...

Success criterion: Any programmer should be able to

instantly understand structure of any code.

Consistent style more important than "perfect" style.