Skip to content

feat: Keep the sentence gap when a line break follows a sentence - #8

Open
krlmlr wants to merge 5 commits into
mainfrom
f-sentence-spacing
Open

krlmlr wants to merge 5 commits into
mainfrom
f-sentence-spacing

Conversation

@krlmlr

@krlmlr krlmlr commented Sep 13, 2026 •

Copy link
Copy Markdown
Owner

Targeting this fork, as a working branch for the cynkra package fleet and a candidate for upstream.

The problem

commonmark discards the whitespace a line break stands for. mdxml_node_to_rd() turns every softbreak and linebreak into mdxml_break(), which emits a bare "\n", so the .Rd carries a line break with nothing after it and Rd2txt() renders it as a single space.

The rendered help therefore depends on where the author happened to break lines. Prose written one sentence per line comes out single-spaced; the same words wrapped to a fixed width with two spaces after the period keep the gap.

It also makes the two styles mutually exclusive. Splitting a sentence pair separated by two spaces silently drops one of them, so a package that wants one sentence per line has to choose between its line-break convention and its sentence spacing. In our fleet that produced single roxygen lines of 300, 460 and 600 columns — joining was the only way to keep the gap — and 26 places in one package where the convention could not be applied at all.

Only the text renderer is affected: Rd2HTML() and Rd2latex() differ by whitespace that HTML and TeX collapse. But text is what ?topic shows, so it is the version most people read.

The change

mdxml_keep_sentence_spacing() indents the break that follows the end of a sentence. Rd2txt() renders a line break followed by whitespace as two spaces after ., ? and !, and as one space everywhere else — so the gap is restored exactly where it belongs and nothing else moves.

The logic lives in a new file, R/sentence-spacing.R. Only two lines of existing code change, both in R/markdown.R, which keeps this branch cheap to carry alongside upstream and cheap to drop once it lands.

Deliberately narrow:

  • Mid-sentence breaks are untouched. Indenting them would change no rendered output at all, only .Rd bytes, so the change stays out of the Rd that does not need it. An earlier draft indented every break; it produced a much larger diff for no rendering benefit and broke 16 existing tests.
  • Links are unaffected. mdxml_break() already collapses breaks inside them, because an Rd link cannot span lines.
  • Closing quotes and brackets between the punctuation and the break still count as the end of a sentence. The match uses perl = TRUE, since a POSIX bracket expression cannot escape ].

Two guards, both found by running this across a real fleet

An abbreviation is not the end of a sentence. A line ending in e.g., etc.) or et al. was gaining a gap in the middle of a sentence — a visible change to rendered help, which is the one outcome worth avoiding. A short abbreviation list plus a lowercase-continuation test suppresses it. The trade-off is stated rather than hidden: a sentence that genuinely ends in etc. now loses its gap. That is the right way round, since a missing gap is invisible and a spurious one is not.

A protected Rd tag must not decide the gap at random. By the time this code runs, protect_rd_tags() has replaced every fragile tag (\doi{}, \url{}, \code{}, \link{}, …) with a placeholder <id>-<n>-, where id is a fresh make_random_string() — 32 characters sampled from c(LETTERS, letters, 0:9), drawn per text block per run. The lowercase-continuation test was reading that placeholder, so a break between sentence-ending punctuation and a line starting with such a tag gained or lost its gap according to the case of one random character. man/ was not reproducible: one package produced eight distinct man/ trees in twelve consecutive roxygenise() runs, flipping four lines across four topics. drop_rd_tag_placeholder() strips the placeholder before the test. What remains begins with the space that separated the tag from the following text, so a tag is never read as a lowercase word, and a line that begins with a tag is treated as beginning a sentence — which is what it does.

Tests

The existing suite passes unchanged except for two places, both about the change itself:

  • expect_equivalent_rd() normalises the indent on both sides. It compares a markdown block against hand-written Rd, and hand-written Rd carries whatever the author typed, so the two now differ by one space in a way that is about representation rather than meaning.
  • One literal expectation in test-markdown.R gains the space, showing the new output.

test-markdown-sentence-spacing.R covers the behaviour directly, including where the indent must not appear: after a comma, a colon, or no punctuation at all, after an abbreviation, before a lowercase continuation, and inside a link. It also renders a topic end to end and asserts the two spaces reach @description, @details, @return and @param. The determinism guard is tested by repeating each tag case 50 times and requiring a single distinct result, which a 26-in-62 coin flip would not survive.

Full suite: 1270 passing, 0 failures, 2 skips for optional packages that are not installed here.

man/ is regenerated, each file differing only by that leading space, verified mechanically rather than by eye.

Status

Not yet filed upstream. If this shape looks right, the same commits are what I would send to r-lib/roxygen2, with an issue describing the behaviour first.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

commonmark discards the whitespace a line break stands for.
`mdxml_node_to_rd()` turns every `softbreak` and `linebreak` into `mdxml_break()`,
which emits a bare `"\n"`,
so the Rd carries a line break with nothing after it and `Rd2txt()` renders it as a single space.

The consequence is that the rendered help depends on where the author happened to break lines.
Prose written one sentence per line comes out single-spaced,
while the same words wrapped to a fixed width with two spaces after the period keep the gap.
It also makes the two styles mutually exclusive:
splitting a sentence pair that is separated by two spaces silently drops one of them,
so a package that wants one sentence per line has to choose between its line-break convention and its sentence spacing.

`mdxml_keep_sentence_spacing()` indents the break that follows the end of a sentence.
`Rd2txt()` renders a line break followed by whitespace as two spaces after `.`, `?` and `!`,
and as one space everywhere else,
so the gap is restored exactly where it belongs and nothing else moves.
Breaks inside a sentence are untouched,
which keeps the change out of the Rd that does not need it.
Links are unaffected: `mdxml_break()` already collapses breaks inside them, because an Rd link cannot span lines.

`man/` is regenerated -- 14 files, each differing only by that leading space.

`expect_equivalent_rd()` now normalises the indent on both sides.
It compares a markdown block against hand-written Rd,
and hand-written Rd carries whatever the author typed,
so the two forms now differ by one space in a way that is about representation rather than meaning.
`test-markdown-sentence-spacing.R` covers the indent itself,
including the cases where it must not appear.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr pushed a commit to r-dbi/DBI that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. DBI sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr pushed a commit to r-dbi/DBItest that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. DBItest sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three. The one line the indent pass had to split,
because the extra space pushed it to 141 columns, is joined again, and the
split it caused in `man/spec_driver_constructor.Rd` goes with it. That is the
only `man/` change on either side.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr pushed a commit to r-dbi/RMariaDB that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. RMariaDB sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr pushed a commit to r-dbi/RPostgres that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. RPostgres sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr pushed a commit to r-lib/pillar that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. pillar sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
The first cut matched any `.`, `?` or `!` before the line break,
which reads `loading C code, etc.)` as the end of a sentence
and inserts a gap in the middle of one.
That was found in the wild, in DBI's `dbDriver()` documentation.

Two guards, both conservative:
a period closing a common abbreviation does not count,
and neither does a break followed by a lowercase word.
Missing a gap is invisible; inserting one mid-sentence is a visible change to the rendered help,
so the heuristic errs towards leaving the break alone.

Version is `8.1.0.9100`.
Upstream numbers its development builds `x.y.z.9000`;
this branch keeps the same `x.y.z` and uses `.9100`,
so `Config/roxygen2/version: 8.1.0.9100` in a package says it was documented with this patch
rather than with a stock roxygen2.
`DESCRIPTION` cannot carry a comment -- `read.dcf()` rejects a `#` line as malformed --
so the explanation lives in a `Config/cynkra/version` field.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
The `R/` footprint is what the consuming packages apply as a patch,
so it is worth keeping small and keeping out of busy files.

`R/markdown.R` now differs from upstream by exactly one line --
the call at the end of `mdxml_children_to_rd()` --
and everything else lives in `R/sentence-spacing.R`,
a filename upstream has no reason to create.
A patch that adds a whole file cannot conflict;
a patch that rewrites eighty lines in the middle of `markdown.R` conflicts the moment anything nearby moves.

The call in `mdxml_children_to_rd_top()` is dropped.
It was there out of caution:
top-level children are blocks rather than inline nodes,
so a line break never reaches it.
The suite passes without it -- 644 files, no failures --
and every call removed is one less line to conflict.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr pushed a commit to r-dbi/DBI that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. DBI sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr pushed a commit to r-dbi/DBItest that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. DBItest sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three. The one line the indent pass had to split,
because the extra space pushed it to 141 columns, is joined again, and the
split it caused in `man/spec_driver_constructor.Rd` goes with it. That is the
only `man/` change on either side.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr pushed a commit to r-dbi/RMariaDB that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. RMariaDB sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

man/*.Rd is regenerated with roxygen2 8.1.0.9100, upstream plus the
sentence-spacing fix. .github/workflows/roxygen2-fork installs that build in
CI so a stock roxygen2 run cannot regenerate man/ without the gaps, and
Config/cynkra/roxygen2 records what the suffix means, because DESCRIPTION
cannot carry a comment.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr pushed a commit to krlmlr/pillar that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. pillar sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr pushed a commit to r-dbi/RPostgres that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. RPostgres sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
`mdxml_keep_sentence_spacing()` suppresses the gap when the text after the
break starts with a lowercase letter, on the grounds that the sentence carries
on. By that point `protect_rd_tags()` has already replaced every fragile Rd tag
with `<id>-<n>-`, and `id` is a fresh `make_random_string()` drawn per text
block per run. A break between sentence-ending punctuation and a line starting
with `\doi{}`, `\url{}` or `\code{}` therefore gained or lost its gap according
to the case of one random character, so `man/` was not reproducible.

Strip the placeholder before the test. What remains begins with the space that
separated the tag from the text after it, so a tag is never read as a lowercase
word and a line that begins with a tag is treated as beginning a sentence --
which is what it does.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr pushed a commit to r-dbi/DBI that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. DBI sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr pushed a commit to r-dbi/DBItest that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. DBItest sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three. The one line the indent pass had to split,
because the extra space pushed it to 141 columns, is joined again, and the
split it caused in `man/spec_driver_constructor.Rd` goes with it. That is the
only `man/` change on either side.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr pushed a commit to r-dbi/RPostgres that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. RPostgres sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
Author initials are a period after one letter, and they sit in `@references`
far more often than a sentence ends in a single capital.
`M.E.J.` before `Newman`, or `Kratzer, S.` before `G., Harley`,
were gaining a gap in the middle of a name.

The trade-off runs the same way as the abbreviation list:
a sentence that really does end in a single letter now loses its gap.
A missing gap is invisible, an inserted one is not.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr added a commit to r-dbi/DBI that referenced this pull request Sep 13, 2026
* docs: Break lines at meaning boundaries

Reformatting only, no wording changes: prose in README.Rmd, the
vignettes and the roxygen and inline comments under R/ now breaks at
sentence and clause boundaries rather than wrapping to a fixed width.

The payoff is sentence-level diffs. A reworded sentence touches one
line instead of reflowing the paragraph around it, so review sees the
change and not the rewrap.

man/*.Rd is regenerated because roxygen2 passes source line breaks
through to the .Rd. The rendered help is byte-identical -- checked with
tools::Rd2txt() over every topic -- as is the rendered README.

`Config/roxygen2/version` moves to 8.1.0.9000, the version that
regenerated these files and the one the rest of the fleet already
pins. It is the only non-prose change here.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Start every broken sentence on its own line

Amendment to the semantic line break pass: when a sentence has to span
more than one line, that sentence and the one after it each start at
the beginning of a line.

Where two sentences are separated by two spaces, no line break can
survive: Rd2txt() renders the gap literally, and roxygen2 strips
leading whitespace from continuation lines, so breaking there would
drop a space from the rendered help. Those sentences are joined onto
one long line instead. A line over 140 columns changes nothing a reader
sees; a break at the double space would.

Reformatting only, no wording changes. man/*.Rd is regenerated because
roxygen2 passes source line breaks through to the .Rd. The rendered
help is byte-identical -- checked with tools::Rd2txt() over all 69
topics.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Indent continuation lines to keep sentence spacing

Inside a roxygen block the first line of a paragraph, and every tag line,
keeps one space after `#'`; every continuation line of that paragraph now
has two. The paragraph structure of the source becomes visible without
reading ahead, and in packages that do not enable roxygen2 markdown the
extra space is what carries a sentence gap across a line break.

DBI enables markdown (`Roxygen: list(markdown = TRUE)`), and commonmark
strips leading whitespace from a paragraph's continuation lines, so here
the indent reaches neither `man/*.Rd` nor the rendered help. Nothing is
regenerated: roxygen2 writes no file, and `tools::Rd2txt()` is unchanged
for all 69 topics.

That also means the long lines this pass created cannot come apart again.
Where two sentences are separated by two spaces, the pair still has to
share one line -- under markdown no leading-space, trailing-space or
hard-break form survives into the `.Rd`, so breaking there would drop a
space from the rendered help.

Reformatting only, no wording changes: the words either side of the diff
are identical once comment markers and whitespace are collapsed.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Drop the continuation-line indent

The two-space continuation indent never reached the `.Rd`. DBI sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Break the joined sentences apart

The long joined lines existed to protect a sentence gap:
two spaces after a sentence period are content, Rd2txt() renders them literally, and a line break there drops one of them.
Joining the sentences onto one line was the only way to keep the gap.

The joins come out, so every sentence starts its own line again.

Reformatting only, no wording changes.

man/ is left to CI, which regenerates it from these sources.

A line break which follows the end of a sentence currently renders as one space rather than two.
Restoring that gap needs a patched roxygen2, which is a separate decision and a separate pull request,
so it is deliberately not part of this change.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* chore: Auto-update from GitHub Actions

Run: https://github.com/r-dbi/DBI/actions/runs/34775605614

---------

Co-authored-by: Claude <[email protected]>
krlmlr pushed a commit to r-dbi/DBItest that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. DBItest sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three. The one line the indent pass had to split,
because the extra space pushed it to 141 columns, is joined again, and the
split it caused in `man/spec_driver_constructor.Rd` goes with it. That is the
only `man/` change on either side.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr pushed a commit to r-dbi/DBI that referenced this pull request Sep 13, 2026
The two-space continuation indent never reached the `.Rd`. DBI sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr added a commit to r-dbi/DBItest that referenced this pull request Sep 14, 2026
* docs: Break lines at meaning boundaries

Reformatting only, no wording changes: prose in README.md, the
vignette and the roxygen and inline comments under R/ now breaks at
sentence and clause boundaries rather than wrapping to a fixed width.

The payoff is sentence-level diffs. A reworded sentence touches one
line instead of reflowing the paragraph around it, so review sees the
change and not the rewrap.

man/*.Rd is regenerated because roxygen2 passes source line breaks
through to the .Rd. The rendered help is byte-identical -- checked with
tools::Rd2txt() over every topic -- as is the rendered README.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Start every broken sentence on its own line

A sentence that spans more than one line now starts at the beginning of
a line, and so does the sentence after it. Line breaks only, no wording
changes.

Where two sentences are separated by two spaces, the pair stays on one
long line: roxygen2 strips leading and trailing whitespace from
continuation lines, so a break at that gap would drop a space from the
rendered help.

man/*.Rd is regenerated because roxygen2 passes source line breaks
through to the .Rd. The rendered help is byte-identical -- checked with
tools::Rd2txt() over every topic.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Indent continuation lines to keep sentence spacing

Inside a roxygen block the first line of a paragraph, and every tag line,
keeps one space after `#'`; every continuation line of that paragraph now
has two. The paragraph structure of the source becomes visible without
reading ahead, and in packages that do not enable roxygen2 markdown the
extra space is what carries a sentence gap across a line break.

DBItest enables markdown (`Roxygen: list(markdown = TRUE)`), and commonmark
strips leading whitespace from a paragraph's continuation lines, so here
the indent reaches neither `man/*.Rd` nor the rendered help. The indent
alone regenerates nothing.

One continuation line landed on 141 columns once indented, and is broken
at a clause boundary to come back under the ceiling. That is the single
`man/*.Rd` change here, and `tools::Rd2txt()` renders it identically.

That also means the long lines this pass created cannot come apart again.
Where two sentences are separated by two spaces, the pair still has to
share one line -- under markdown no leading-space, trailing-space or
hard-break form survives into the `.Rd`, so breaking there would drop a
space from the rendered help.

The generated sources -- `R/spec-meta-bind*.R` apart from the three that
feed them, and `R/generics.R` -- are left untouched, as are the vendored
`R/compat-*.R`.

Reformatting only, no wording changes: the words either side of the diff
are identical once comment markers and whitespace are collapsed.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Drop the continuation-line indent

The two-space continuation indent never reached the `.Rd`. DBItest sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three. The one line the indent pass had to split,
because the extra space pushed it to 141 columns, is joined again, and the
split it caused in `man/spec_driver_constructor.Rd` goes with it. That is the
only `man/` change on either side.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Break the joined sentences apart

The long joined lines existed to protect a sentence gap:
two spaces after a sentence period are content, Rd2txt() renders them literally, and a line break there drops one of them.
Joining the sentences onto one line was the only way to keep the gap.

The joins come out, so every sentence starts its own line again.

Reformatting only, no wording changes.

man/ is left to CI, which regenerates it from these sources.

A line break which follows the end of a sentence currently renders as one space rather than two.
Restoring that gap needs a patched roxygen2, which is a separate decision and a separate pull request,
so it is deliberately not part of this change.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Regenerate the inlined bind specs

`R/spec-meta-bind{,-arrow,-stream,-arrow-stream}.R` are generated from
`R/spec-meta-bind-expr.R` by `tests/testthat/helper-dev.R`,
and they embed the feeder's prose as comments together with its source line numbers.
Reflowing the feeder moved that prose onto single lines and shifted 232 of those references,
so the generated files described a file that no longer looked like that.

Regeneration cannot happen on its own here:
`helper-dev.R` skips it when `CI` is set,
and triggers on a file modification time comparison that a fresh clone makes meaningless.
Left alone, the drift would surface as an unrelated diff in whoever next regenerates locally.

One change comes from the generator rather than from the sources:
`constructive` no longer emits `stringsAsFactors = FALSE`,
which is the default from R 4.0.0 onwards.
DESCRIPTION still declares `R (>= 3.2.0)`,
where the argument would have mattered.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* chore: Auto-update from GitHub Actions

Run: https://github.com/r-dbi/DBItest/actions/runs/34783628414

---------

Co-authored-by: Claude <[email protected]>
krlmlr pushed a commit to r-dbi/DBItest that referenced this pull request Sep 14, 2026
The two-space continuation indent never reached the `.Rd`. DBItest sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three. The one line the indent pass had to split,
because the extra space pushed it to 141 columns, is joined again, and the
split it caused in `man/spec_driver_constructor.Rd` goes with it. That is the
only `man/` change on either side.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr added a commit to r-dbi/RPostgres that referenced this pull request Sep 14, 2026
* docs: Break lines at meaning boundaries

Reformatting only, no wording changes: prose in README.md, the
vignette and the roxygen and inline comments under R/ now breaks at
sentence and clause boundaries rather than wrapping to a fixed width.

The payoff is sentence-level diffs. A reworded sentence touches one
line instead of reflowing the paragraph around it, so review sees the
change and not the rewrap.

man/*.Rd is regenerated because roxygen2 passes source line breaks
through to the .Rd. The rendered help is byte-identical -- checked with
tools::Rd2txt() over every topic -- as is the rendered README.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Start every broken sentence on its own line

A sentence that spans more than one line now starts at the beginning of
a line, and so does the sentence after it. Line breaks only, no wording
changes.

Where two sentences are separated by two spaces, the pair stays on one
long line: roxygen2 strips leading and trailing whitespace from
continuation lines, so a break at that gap would drop a space from the
rendered help.

man/*.Rd is regenerated because roxygen2 passes source line breaks
through to the .Rd. The rendered help is byte-identical -- checked with
tools::Rd2txt() over every topic.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Indent continuation lines to keep sentence spacing

Inside a roxygen block the first line of a paragraph, and every tag line,
keeps one space after `#'`; every continuation line of that paragraph now
has two. The paragraph structure of the source becomes visible without
reading ahead, and in packages that do not enable roxygen2 markdown the
extra space is what carries a sentence gap across a line break.

RPostgres enables markdown (`Roxygen: list(markdown = TRUE)`), and commonmark
strips leading whitespace from a paragraph's continuation lines, so here
the indent reaches neither `man/*.Rd` nor the rendered help. Nothing is
regenerated: roxygen2 writes no file, and `tools::Rd2txt()` is unchanged
for every topic.

That also means the one long line this pass created cannot come apart
again. `R/dbConnect_PqDriver.R` keeps the sentence pair that the
previous commit joined on a single line, because under markdown no
leading-space, trailing-space or hard-break form survives into the
`.Rd`, so breaking there would drop a space from the rendered help.

The generated `R/cpp11.R` is left untouched.

Reformatting only, no wording changes: the words either side of the diff
are identical once comment markers and whitespace are collapsed.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Drop the continuation-line indent

The two-space continuation indent never reached the `.Rd`. RPostgres sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Break the joined sentences apart

The long joined lines existed to protect a sentence gap:
two spaces after a sentence period are content, Rd2txt() renders them literally, and a line break there drops one of them.
Joining the sentences onto one line was the only way to keep the gap.

The joins come out, so every sentence starts its own line again.

Reformatting only, no wording changes.

man/ is left to CI, which regenerates it from these sources.

A line break which follows the end of a sentence currently renders as one space rather than two.
Restoring that gap needs a patched roxygen2, which is a separate decision and a separate pull request,
so it is deliberately not part of this change.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* chore: Auto-update from GitHub Actions

Run: https://github.com/r-dbi/RPostgres/actions/runs/34782806136

---------

Co-authored-by: Claude <[email protected]>
krlmlr pushed a commit to r-dbi/RPostgres that referenced this pull request Sep 26, 2026
The two-space continuation indent never reached the `.Rd`. RPostgres sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
krlmlr added a commit to r-dbi/DBItest that referenced this pull request Nov 28, 2026
* docs: State the goals and non-goals

Scope drawn from the Title and Description in DESCRIPTION, the README's
own statement that the package is primarily useful for backend
developers, the vignette on incremental and external testing including
the note that not all tests can be satisfied, the tweaks() and skip
arguments, and the roxygen "Specification" sections in R/spec-*.R that
DBI inherits into its own help pages.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Derive `README.md` from a `README.Rmd`

The hand-written `README.md` keeps the package out of the shared rendering pipeline,
so this adds a `README.Rmd` copied from it verbatim,
prefixed with the `cynkratemplate::readme_document` front matter and the canonical generated-file comment.

Rendering with `cynkratemplate::render_readme()` also writes `index.md` for pkgdown,
which is the `README.md` without the code-of-conduct footer.
Both `README.Rmd` and `index.md` are added to `.Rbuildignore` so neither ships in the tarball.

The rendered `README.md` differs from the hand-written one only in pandoc's gfm normalisations:
the generated-file comment, a blank line after `<!-- badges: start -->`,
` ```r ` written as ` ``` r `, and `---` written as a full-width row of hyphens.
No word, URL, or code-block content changes.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Use `pak::pak()` for the development install

One of the items `usethis::use_tidy_upkeep_issue()` prescribes for 2023.
`pak::pak()` resolves system requirements and installs binaries where
they exist, so it does not need a compiler for pure-R dependencies the
way `install_github()` does.

The `# install.packages("pak")` comment is kept, matching what the
packages in this fleet that already use pak do. pak is not a dependency
of usethis, and only devtools imports it, so a reader with neither
installed still needs the line.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Drop the branch from the coverage badge

Two URLs make up the badge and they had drifted apart: the image is
served from the bare `codecov.io` host, the link opens the UI on
`app.codecov.io`. Both are brought to their current form.

The branch is dropped from the image URL rather than pinned to `main`. A
branch-pinned badge keeps reporting the branch it names, so it goes
stale silently the next time a branch is renamed -- which is how several
badges in this fleet came to report a branch that no longer exists.
Without one, codecov reports the default branch and the badge follows a
rename on its own.

The link moves to `/tree/main`, the address the `?branch=` query
redirects to.

    image  codecov.io/gh/<owner>/<repo>/graph/badge.svg
    link   app.codecov.io/gh/<owner>/<repo>/tree/main

The owner and repository are carried over from the URL being rewritten,
so this cannot retarget a badge at a different project.

The badge block is pass-through markdown, so `README.md` and `index.md`
carry the identical edit rather than a re-render.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Break lines at meaning boundaries

Reformatting only, no wording changes: prose in README.md, the
vignette and the roxygen and inline comments under R/ now breaks at
sentence and clause boundaries rather than wrapping to a fixed width.

The payoff is sentence-level diffs. A reworded sentence touches one
line instead of reflowing the paragraph around it, so review sees the
change and not the rewrap.

man/*.Rd is regenerated because roxygen2 passes source line breaks
through to the .Rd. The rendered help is byte-identical -- checked with
tools::Rd2txt() over every topic -- as is the rendered README.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Start every broken sentence on its own line

A sentence that spans more than one line now starts at the beginning of
a line, and so does the sentence after it. Line breaks only, no wording
changes.

Where two sentences are separated by two spaces, the pair stays on one
long line: roxygen2 strips leading and trailing whitespace from
continuation lines, so a break at that gap would drop a space from the
rendered help.

man/*.Rd is regenerated because roxygen2 passes source line breaks
through to the .Rd. The rendered help is byte-identical -- checked with
tools::Rd2txt() over every topic.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Indent continuation lines to keep sentence spacing

Inside a roxygen block the first line of a paragraph, and every tag line,
keeps one space after `#'`; every continuation line of that paragraph now
has two. The paragraph structure of the source becomes visible without
reading ahead, and in packages that do not enable roxygen2 markdown the
extra space is what carries a sentence gap across a line break.

DBItest enables markdown (`Roxygen: list(markdown = TRUE)`), and commonmark
strips leading whitespace from a paragraph's continuation lines, so here
the indent reaches neither `man/*.Rd` nor the rendered help. The indent
alone regenerates nothing.

One continuation line landed on 141 columns once indented, and is broken
at a clause boundary to come back under the ceiling. That is the single
`man/*.Rd` change here, and `tools::Rd2txt()` renders it identically.

That also means the long lines this pass created cannot come apart again.
Where two sentences are separated by two spaces, the pair still has to
share one line -- under markdown no leading-space, trailing-space or
hard-break form survives into the `.Rd`, so breaking there would drop a
space from the rendered help.

The generated sources -- `R/spec-meta-bind*.R` apart from the three that
feed them, and `R/generics.R` -- are left untouched, as are the vendored
`R/compat-*.R`.

Reformatting only, no wording changes: the words either side of the diff
are identical once comment markers and whitespace are collapsed.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Drop the continuation-line indent

The two-space continuation indent never reached the `.Rd`. DBItest sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three. The one line the indent pass had to split,
because the extra space pushed it to 141 columns, is joined again, and the
split it caused in `man/spec_driver_constructor.Rd` goes with it. That is the
only `man/` change on either side.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Break the joined sentences apart

The long joined lines existed to protect a sentence gap:
two spaces after a sentence period are content, Rd2txt() renders them literally, and a line break there drops one of them.
Joining the sentences onto one line was the only way to keep the gap.

The joins come out, so every sentence starts its own line again.

Reformatting only, no wording changes.

man/ is left to CI, which regenerates it from these sources.

A line break which follows the end of a sentence currently renders as one space rather than two.
Restoring that gap needs a patched roxygen2, which is a separate decision and a separate pull request,
so it is deliberately not part of this change.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Regenerate the inlined bind specs

`R/spec-meta-bind{,-arrow,-stream,-arrow-stream}.R` are generated from
`R/spec-meta-bind-expr.R` by `tests/testthat/helper-dev.R`,
and they embed the feeder's prose as comments together with its source line numbers.
Reflowing the feeder moved that prose onto single lines and shifted 232 of those references,
so the generated files described a file that no longer looked like that.

Regeneration cannot happen on its own here:
`helper-dev.R` skips it when `CI` is set,
and triggers on a file modification time comparison that a fresh clone makes meaningless.
Left alone, the drift would surface as an unrelated diff in whoever next regenerates locally.

One change comes from the generator rather than from the sources:
`constructive` no longer emits `stringsAsFactors = FALSE`,
which is the default from R 4.0.0 onwards.
DESCRIPTION still declares `R (>= 3.2.0)`,
where the argument would have mattered.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* chore: Auto-update from GitHub Actions

Run: https://github.com/r-dbi/DBItest/actions/runs/34783628414

* docs: Derive `README.md` from a `README.Rmd`

The hand-written `README.md` keeps the package out of the shared rendering pipeline,
so this adds a `README.Rmd` copied from it verbatim,
prefixed with the `cynkratemplate::readme_document` front matter and the canonical generated-file comment.

Rendering with `cynkratemplate::render_readme()` also writes `index.md` for pkgdown,
which is the `README.md` without the code-of-conduct footer.
Both `README.Rmd` and `index.md` are added to `.Rbuildignore` so neither ships in the tarball.

The rendered `README.md` differs from the hand-written one only in pandoc's gfm normalisations:
the generated-file comment, a blank line after `<!-- badges: start -->`,
` ```r ` written as ` ``` r `, and `---` written as a full-width row of hyphens.
No word, URL, or code-block content changes.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: State the goals and non-goals

Scope drawn from the Title and Description in DESCRIPTION, the README's
own statement that the package is primarily useful for backend
developers, the vignette on incremental and external testing including
the note that not all tests can be satisfied, the tweaks() and skip
arguments, and the roxygen "Specification" sections in R/spec-*.R that
DBI inherits into its own help pages.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Render README.md with the autolinker

The format from cynkratemplate#135 now links inline code in prose to its reference page,
and this branch was rendered before that landed,
so the committed README.md no longer matched a fresh render.
With the README rendered in CI by default, the first run would have committed the links itself;
this commits exactly what that run produces, so the pull request stays a faithful render.

Only README.md changes: the links are added to prose and nothing else moves.
index.md is untouched, because pkgdown links the front page itself.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

---------

Co-authored-by: Claude Opus 5 <[email protected]>
krlmlr added a commit to r-dbi/RPostgres that referenced this pull request Nov 29, 2026
* docs: Use `pak::pak()` for the development install

One of the items `usethis::use_tidy_upkeep_issue()` prescribes for 2023.
`pak::pak()` resolves system requirements and installs binaries where they exist,
so it does not need a compiler for pure-R dependencies the way `install_github()` does.

The `# install.packages("pak")` comment is kept, matching what the packages in this fleet that already use pak do.
Both usethis and devtools import pak, so most readers already have it,
but a reader with neither of those installed still needs the line.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Point the coverage badge at the branch that exists

Closes #599.

The badge image was pinned to `branch/master`, which has not existed since the rename to `main`.
Codecov kept serving that branch's last recorded figure while `main` moved on,
so the image disagreed with the link beside it, which already pointed at `main`.

The branch is dropped from the image URL rather than corrected to `main`.
A branch-pinned badge goes stale silently the next time a branch is renamed, which is exactly what happened here;
without one, codecov reports the default branch and the badge follows a rename on its own.

The link becomes `app.codecov.io/gh/r-dbi/RPostgres/tree/main`:
the `app.` host is the UI (the bare host serves the badge image),
`/gh/` is the canonical short form,
and `/tree/main` is the branch view rather than the `?branch=` query that redirects to it.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Break lines at meaning boundaries

Reformatting only, no wording changes: prose in README.md, the
vignette and the roxygen and inline comments under R/ now breaks at
sentence and clause boundaries rather than wrapping to a fixed width.

The payoff is sentence-level diffs. A reworded sentence touches one
line instead of reflowing the paragraph around it, so review sees the
change and not the rewrap.

man/*.Rd is regenerated because roxygen2 passes source line breaks
through to the .Rd. The rendered help is byte-identical -- checked with
tools::Rd2txt() over every topic -- as is the rendered README.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Start every broken sentence on its own line

A sentence that spans more than one line now starts at the beginning of
a line, and so does the sentence after it. Line breaks only, no wording
changes.

Where two sentences are separated by two spaces, the pair stays on one
long line: roxygen2 strips leading and trailing whitespace from
continuation lines, so a break at that gap would drop a space from the
rendered help.

man/*.Rd is regenerated because roxygen2 passes source line breaks
through to the .Rd. The rendered help is byte-identical -- checked with
tools::Rd2txt() over every topic.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Indent continuation lines to keep sentence spacing

Inside a roxygen block the first line of a paragraph, and every tag line,
keeps one space after `#'`; every continuation line of that paragraph now
has two. The paragraph structure of the source becomes visible without
reading ahead, and in packages that do not enable roxygen2 markdown the
extra space is what carries a sentence gap across a line break.

RPostgres enables markdown (`Roxygen: list(markdown = TRUE)`), and commonmark
strips leading whitespace from a paragraph's continuation lines, so here
the indent reaches neither `man/*.Rd` nor the rendered help. Nothing is
regenerated: roxygen2 writes no file, and `tools::Rd2txt()` is unchanged
for every topic.

That also means the one long line this pass created cannot come apart
again. `R/dbConnect_PqDriver.R` keeps the sentence pair that the
previous commit joined on a single line, because under markdown no
leading-space, trailing-space or hard-break form survives into the
`.Rd`, so breaking there would drop a space from the rendered help.

The generated `R/cpp11.R` is left untouched.

Reformatting only, no wording changes: the words either side of the diff
are identical once comment markers and whitespace are collapsed.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Drop the continuation-line indent

The two-space continuation indent never reached the `.Rd`. RPostgres sets
`Roxygen: list(markdown = TRUE)`, and commonmark strips the leading
whitespace of a continuation line before roxygen2 writes the topic, so the
indent changed no rendered output -- `man/` was byte-identical with it and
without it.

The sentence gap it was meant to carry now comes from roxygen2 itself
(krlmlr/roxygen2#8), which indents the line break after a sentence at the
point where the break is emitted. The source-level indent is redundant, so
it comes out.

This is `git revert` of the indent commit, not a substitution: that pass also
normalised pre-existing three-space tag continuations down to two, and the
revert puts them back at three.

The long joined lines the sembr pass created stay as they are. Undoing those
is a separate decision, and the roxygen2 fix is what will eventually let them
come apart.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Break the joined sentences apart

The long joined lines existed to protect a sentence gap:
two spaces after a sentence period are content, Rd2txt() renders them literally, and a line break there drops one of them.
Joining the sentences onto one line was the only way to keep the gap.

The joins come out, so every sentence starts its own line again.

Reformatting only, no wording changes.

man/ is left to CI, which regenerates it from these sources.

A line break which follows the end of a sentence currently renders as one space rather than two.
Restoring that gap needs a patched roxygen2, which is a separate decision and a separate pull request,
so it is deliberately not part of this change.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* chore: Auto-update from GitHub Actions

Run: https://github.com/r-dbi/RPostgres/actions/runs/34782806136

* docs: State the goals and non-goals

Scope drawn from the README's own opening and its "Design notes" section
("This turns out to be too general: a driver has no real state, for PostgreSQL
each connection can only have one result set ... the driver class is just a
dummy class with no contents"), the DESCRIPTION (Imports DBI, bit64, blob, hms,
lubridate; SystemRequirements names libpq >= 9.0), the exported
PostgreSQL-specific helpers in NAMESPACE (postgresWaitForNotify(),
postgresImportLargeObject(), Redshift()), and tests/testthat/test-DBItest.R,
which runs DBItest::test_all().

The type-mapping goal claims a best fit rather than a lossless one.
src/PqResultImpl.cpp maps NUMERIC and MONEY to double, and INTERVAL and UUID to character,
so "without losing information" would not hold.

The Redshift non-goal names BLOBs only, which tests/testthat/helper-DBItest.R
still records as `omit_blob_tests = TRUE` in its Redshift context.
NEWS.md 1.4.0 also reported limitations enumerating temporary and persistent tables,
but 1.4.3 supersedes that entry: "Temporary tables are now discovered correctly
for `Redshift()` connections, all DBItest tests pass".

The "does not bundle a client library" non-goal says that no libpq source ships with the package,
rather than that the build relies on the system libpq.
The latter holds on Unix only: tools/winlibs.R downloads a prebuilt libpq on Windows,
and configure falls back to autobrew on macOS.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: State the goals and non-goals

Scope drawn from the README's own opening and its "Design notes" section
("This turns out to be too general: a driver has no real state, for PostgreSQL
each connection can only have one result set ... the driver class is just a
dummy class with no contents"), the DESCRIPTION (Imports DBI, bit64, blob, hms,
lubridate; SystemRequirements names libpq >= 9.0), the exported
PostgreSQL-specific helpers in NAMESPACE (postgresWaitForNotify(),
postgresImportLargeObject(), Redshift()), and tests/testthat/test-DBItest.R,
which runs DBItest::test_all().

The type-mapping goal claims a best fit rather than a lossless one.
src/PqResultImpl.cpp maps NUMERIC and MONEY to double, and INTERVAL and UUID to character,
so "without losing information" would not hold.

The Redshift non-goal names BLOBs only, which tests/testthat/helper-DBItest.R
still records as `omit_blob_tests = TRUE` in its Redshift context.
NEWS.md 1.4.0 also reported limitations enumerating temporary and persistent tables,
but 1.4.3 supersedes that entry: "Temporary tables are now discovered correctly
for `Redshift()` connections, all DBItest tests pass".

The "does not bundle a client library" non-goal says that no libpq source ships with the package,
rather than that the build relies on the system libpq.
The latter holds on Unix only: tools/winlibs.R downloads a prebuilt libpq on Windows,
and configure falls back to autobrew on macOS.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

* docs: Fix the doubled "the" in the install snippet

The comment above the development install read "Or the the development version from GitHub".
Folded in from #608.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd6e5NcxC9GSrNJDokc

* docs: Spell "behavior" as the package does and say when the build downloads libpq

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd6e5NcxC9GSrNJDokc

* docs: Correct the design non-goal and tighten the goals list

Connection and result do not share one external pointer:
each result has its own, and a new query cancels the open one.
Also fix comma splices, say that integer64 is only the default for bigint,
match the bullet style of the list above, and break the longer lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd6e5NcxC9GSrNJDokc

---------

Co-authored-by: Claude Opus 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants