| title | Coding Standards for R | ||||
|---|---|---|---|---|---|
| subtitle | |||||
| author | Roger D. Peng, Associate Professor of Biostatistics | ||||
| job | Johns Hopkins Bloomberg School of Public Health | ||||
| logo | bloomberg_shield.png | ||||
| framework | io2012 | ||||
| highlighter | highlight.js | ||||
| hitheme | tomorrow | ||||
| url |
|
||||
| widgets |
|
||||
| mode | selfcontained |
- Always use text files / text editor
-
Always use text files / text editor
-
Indent your code
-
Always use text files / text editor
-
Indent your code
-
Limit the width of your code (80 columns?)
-
Indenting improves readability
-
Fixing line length (80 columns) prevents lots of nesting and very long functions
-
Suggested: Indents of 4 spaces at minimum; 8 spaces ideal
-
Always use text files / text editor
-
Indent your code
-
Limit the width of your code (80 columns?)
-
Limit the length of individual functions