-
-
Notifications
You must be signed in to change notification settings - Fork 0
03. Writing Style
Michael McCarthy edited this page Nov 10, 2021
·
3 revisions
When referring to packages, they should be emphasized in bold text in their first mention, and plain text thereafter.
- Do: The distill package is awesome. Have you tried distill?
- Do: distill is an awesome package. I first started using distill last year.
- Don’t: The distill package is awesome. I love distill.
- Don’t: The distill package is awesome. I love distill.
Consider citing the author(s) of the package when introducing it too.
Sentences should not start with inline code.
- Do: The
print()
function prints its argument and returns it invisibly. - Don’t:
print()
prints its argument and returns it invisibly.
This rule applies to inline math too.
- Do: The variable t represents the number of seconds elapsed.
- Don’t: t represents the number of seconds elapsed.
Follow the tidyverse style guide
© Copyright Michael McCarthy