-
Notifications
You must be signed in to change notification settings - Fork 15
Style guide
The first chapter should have the list of all packages ever referenced in the book
Move library(package) to the top of every .Rmd file. Only call packages that are actually used in that chapter.
using the package name as a prefix, which makes it very clear where the function is defined. For example, rather than:
`columns_info_schema_table <- tbl(con, in_schema("information_schema", "columns"))`
use:
`columns_info_schema_table <- dplyr::tbl(con, dbplyr::in_schema("information_schema", "columns"))`
at least for the first couple times that a function appears in the tutorial.
We say postgres in conversational settings, but in the book, use the correct name.
Help the readers understand new terms, link to definitions, etc. Can be highlighted with text color or with an box HTML like:
| Important message or point |
Dependencies and initialization need to be very clear.
Consider memory issues implied by many pipes
Watch for line length and indentation
Avoid using postgreSQL-specific tables so that any code / learning in the tutorial is transferable to other databases.