ibartomeus / traitbase

This repo manages the dynamic individual trait database www.traitbase.info via traitbaseR (https://github.com/metadevpro/traitbaser)
7 stars 1 forks source link

Unify style of Scheme and trait names #17

Open ibartomeus opened 5 years ago

ibartomeus commented 5 years ago

What do you think about this style guide?

-File Names: no caps or spaces, end in .R or .md

-Load all libraries and needed files first

-Use headers: ##headers---

-Identifiers: variable_name, no caps

-Line Length: maximum ~ 80 characters (i.e. an Rstudio source screen)

-Indentation: use tabs, when a line break occurs inside parentheses, align the wrapped line with the first character inside the parenthesis

-Place spaces around all binary operators (=, +, -, <-, etc.)

-Curly Braces: first on the same line, last on own line. but use else surround else with braces

-Assignment: use <-, not =

-Semicolons: don't use them

-Commenting Guidelines: comment a lot, all comments begin with # followed by a space; inline comments need a tab before the #