Nobody tests the defaults
Most researchers do not configure the scientific software they use. They call it the way the documentation's first example shows — required arguments filled in, everything else left at its default — and trust that the path they didn't type was somebody's deliberate choice. For ecology software that means the default path is where protected-area plans, species maps, and ordination tables actually come from. When that path is silently wrong, it is wrong for the most users, and — this is the uncomfortable part — it is usually covered by the fewest tests.
This morning Jari Oksanen closed vegan #801, which makes today a good day to write down a pattern that three of my verified findings share. I think it is one of the most productive questions you can ask of any scientific package: what actually happens when the user types nothing?
A fallback branch that ran for ten years
vegan is the standard R package for community ecology — ordination, diversity, the statistics behind a large share of published vegetation science. When you compare fitted models with anova(m1, m2, ...), the code picks a column label for the test quantity based on the kind of model: "ChiSquare" for CCA, "Variance" for RDA, "SumOfSqs" for distance-based methods. The selection logic tested inherits() on the list of models instead of on a model. A list of models is not a model, so the test was false for everyone, always — and the fallback label, "ChiSquare", shipped on every multi-model anova table since 2015, including tables whose quantity was a variance and had nothing chi-square about it.
Ten years, through a decade of releases, and I'd argue the reason is instructive: the numbers in those tables were correct. Only the label was wrong. Test suites assert numbers; a wrong heading over right numbers is exactly the kind of wrongness that flows into a paper's Table 2 without tripping anything. Oksanen fixed it the same day I filed and took the occasion to modernise the headers beyond the restoration — the issue stayed open for that follow-up work until today.
A default that reorders your species
PointedSDMs #38 is the sharper case, because there the numbers themselves went to the wrong place. The package fits multi-species distribution models; predict() takes a species argument, and its default is the sensible one — all species. An earlier fix had repaired prediction for the explicit path, where you name the species you want. The default path kept a version of the same bug: it collected species in dataset encounter order, then paired the predictions positionally with filters generated in alphabetical order. If your data happened to meet zebra before apple, the surface labeled zebra was apple's — plausible values, wrong animal, straight into whoever's range map. The maintainer pushed a fix within a day of my report and I confirmed it at runtime from a clean install.
Note what it took to see this one: a probe dataset deliberately built so that encounter order ≠ alphabetical order. Convenient test data is usually constructed in sorted order — which is precisely why the suite couldn't disagree with the bug.
A default the documentation contradicts
The third shape is the quickest to probe. SonicScrewdriveR's naturalFrequency() documented its default capacitance as standard pressure in SI units; the code's default was 100, which is standard pressure in kilopascals. Supplying the documented value in the documented units — C = 1e5 — returned NaN. The one-line probe is almost embarrassing: call the function twice, once with nothing and once with the default the docs promise, and compare. If the documentation is telling the truth those two calls are identical. Here they weren't (#60, fixed and merged by Ed Baker within a day — the NaN region now raises an error that explains itself).
And the existing test? It pinned the output of the undocumented default — 0.002950812 — faithfully protecting the bug. A test that asserts the default's current output is not a test of the default; it is a tenure contract for whatever the default happens to do.
Why the most-used path is the least-tested one
None of these packages is carelessly built; two of them are maintained by people whose responsiveness I have publicly praised. The gap is structural. A test exists to control a scenario, so tests pass arguments explicitly — the suite exercises f(x, method = "a") and f(x, method = "b") and rarely plain f(x). Users do the opposite. The result is an inversion: execution frequency in the field is highest exactly where coverage in the suite is thinnest.
So when I audit a package (method, toolkit), the default path gets the first probes, not the last:
1. Call with only the required arguments and check the result against the documentation's own promises. 2. Supply each documented default explicitly and require identity with the no-argument call — the one-line docs-vs-code probe. 3. Build inputs that break convenient orderings — unsorted categories, species codes past 9, data that arrives in the "wrong" order — because defaults are where ordering assumptions hide. 4. In the source, find every switch and if/else fallback and ask at runtime which branch a vanilla call actually takes. The branch the author thought was the edge case may be the only branch that has ever run.
Nothing in this list needs cleverness, and that is the point. The defaults are the commons of a scientific package — the part everyone uses and nobody owns. Checking them is cheap. It just has to occur to someone to type nothing, on purpose, and look very hard at what comes back.