-
Notifications
You must be signed in to change notification settings - Fork 7
Home
George G. Vega Yon edited this page Jan 13, 2017
·
25 revisions
- The 80 characters rule.
- When possible, structure your code as sections/files, with files holding similar functions and sections to give internal structure to your file.
- Use indenting
- Explain yourself: Add comments.
# If it's only a single like
if (...)
...then...
# Several blocks
if (...) {
...then...
} else {
...
}
- Never use dots to name objects, e.g.
my.object
- Whenever possible, use informative names, e.g.
loglike
instead ofvar1
- Use devtools
- Use travis-ci
- Use roxygen
- Use testthat + codecov
- The Art of R programming
- R packages