Last modified: 2026-11-13 12:24:54 (PST)
Software projects depend on short documents:
Readers of these documents often arrive without context on the change, so the rules in the other chapters apply to them too. This chapter lists the general rules that matter most here and adds a few that belong to software.
❌ Update plotting code.
✅ Label the y-axis in original units, so the figure no longer shows log-odds.
The repo maintainers make each writing-style decision explicitly and record it in this book. Take a writing-style choice from this book, not from the prose around your edit. A neighboring page shows what someone wrote once, not what the maintainers decided. When this book does not say how to write something, raise the question as an issue on psw, with your recommendation, instead of copying a nearby page. Code style follows the same rule in psc.
Before you propose a name for an R package, check that nobody already uses it. Search these places, and report the result with the name:
https://cran.r-project.org/web/packages/<name>/index.html, which returns 404 when the name is free;https://cran.r-project.org/src/contrib/Archive/<name>/, because a removed package still holds its name;A name that CRAN has used is usually unavailable for a new package and confuses users, so pick a different name.
Split a long Quarto document into files that follow its headings:
Readers and reviewers then find the outline in one place, and an author edits each file as a unit. Apply the structure to a page when you edit it, and leave pages you are not editing as they are.
4 Comment code sparingly