- Variables = my_variable
- Functions = RunThisStuffs()
- Constants = CONSTANTS
- Use 4 spaces (and not tab) for indentations
- Always writing documentation above function definition
- A function should not be longer than one screen
- Avoid using for loop, learn lapply and vector operations
- Never ever use hard-coded variables in functions
### ======
to divide function blocks### ------
to divide parts in a function- Name and style code consistently
rm(list =ls())
andgc()
to tidy up its memory- Don’t save a session history
- Keep track of
sessionInfo()
in project folder - Use version control