Skip to content

docs: State the goals and non-goals - #560

Merged
krlmlr merged 12 commits into
mainfrom
claude/readme-goals
Nov 29, 2026
Merged

krlmlr merged 12 commits into
mainfrom
claude/readme-goals

Conversation

@krlmlr

@krlmlr krlmlr commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

Evidence:

  • "does not define what the database interface looks like" — DBI is an Imports; this package exports methods, not generics.
  • "does not translate R code into SQL" — the API takes SQL strings; there is no query builder in NAMESPACE and no dbplyr dependency.
  • "does not carry forward the RMySQL extensions DBI does not define" — NEWS.md under RMariaDB 0.11-1 (2016-03-24), verbatim: "dbApply(), dbMoreResults() and dbNextResults() have been removed. These were always flagged as experimental, and now the experiment is over." None of the three is a DBI generic, so the bullet names exactly those.
  • "does not bundle a client library" — SystemRequirements names libmariadb-dev / libmysqlclient-dev.
  • "does not store your credentials" — the "Secure passwords" section of dbConnect()'s roxygen recommends keyring; the README documents ~/.my.cnf.

The DBI-conformance goal is checked rather than asserted: tests/testthat/test-DBItest.R runs DBItest::test_all().

Corrected since the first revision: the bullet also listed dbListFields() and dbGetInfo() as RMySQL extensions that "gave way to their DBI equivalents", and attributed the removals to a 1.0.0 NEWS section. Both halves were wrong. dbListFields() and dbGetInfo() are DBI generics, and RMariaDB exports both today via exportMethods(), with R/dbGetInfo_MariaDBConnection.R and R/dbGetInfo_MariaDBDriver.R supplying the dbGetInfo() methods and NEWS for 1.0.8 recording "Implement dbGetInfo() according to the specification". There is no 1.0.0 section in NEWS.md at all — the removals are under 0.11-1. The bullet is now cut back to the three that really were dropped and never came back.

Connection pooling was considered and dropped — the package does not do it, but nothing in the repository says it is out of scope, and "happens not to do" is not a non-goal.

The DBI specification link uses https://dbi.r-dbi.org/articles/spec.html; pkgdown on GitHub Pages does not append .html. The intro paragraph two paragraphs above pointed at the CRAN vignette copy and is brought to the same address, so the two links agree.

This package has no README.Rmd, so README.md is the source and was edited directly; nothing is rendered.

RMySQL is described as the package RMariaDB succeeds, in the intro and in the goals, without calling it "old" (review comment on README.md line 13).

Based on main; #559 and the PRs below it are merged. Bottom of the stack #560 → #562 → #561.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

Continued in https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89


Generated by Claude Code

@krlmlr
krlmlr force-pushed the claude/readme-goals branch from 277b395 to d0da2e0 Compare September 13, 2026 14:27
@krlmlr
krlmlr force-pushed the claude/readme-goals branch 2 times, most recently from 4fbc6ce to dad291d Compare September 13, 2026 16:17
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from dad291d to 2842ed8 Compare September 13, 2026 16:58
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from 2842ed8 to 8ed7c48 Compare September 13, 2026 18:25
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from 8ed7c48 to c604adb Compare September 13, 2026 18:37
@krlmlr
krlmlr added this pull request to stack #564 September 13, 2026 21:07
@krlmlr
krlmlr force-pushed the claude/readme-goals branch 2 times, most recently from 47d5068 to 0826428 Compare September 13, 2026 21:42
Comment thread README.md Resolved
krlmlr and others added 7 commits September 14, 2026 07:25
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 arrives as a dependency of usethis and of devtools, which both list it in `Imports`,
but the block does not ask the reader to have either installed,
so the line is what makes the snippet self-contained.

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

This package has no `README.Rmd` and no `index.md`:
`README.md` is hand-written source, so the edit lands there and touches nothing else.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
Reformatting only, no wording changes:
prose in README.md 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
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.

RMariaDB 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 settles what to do with a sentence pair separated by two
spaces: it still has to share one 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.
RMariaDB has three such pairs and none of them is over the line
length ceiling, so nothing had to be joined here in the first place.

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
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 indent was meant to carry the sentence gap, and it never did, 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.

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
Scope drawn from the README's own opening
("aimed at full compliance with the DBI specification, as a replacement for the old RMySQL package"),
the DESCRIPTION (Imports DBI, bit64, blob, hms, lubridate;
SystemRequirements names the client libraries the package builds against),
the roxygen of dbConnect() (the `mysql` argument:
"supports both MariaDB and MySQL servers, but the SQL dialect and other details vary";
the secure-password section pointing at keyring),
and tests/testthat/test-DBItest.R, which runs DBItest::test_all().

The RMySQL non-goal rests on the NEWS entry for RMariaDB 0.11-1 (2016-03-24),
which records the removal of dbApply(), dbMoreResults() and dbNextResults()
as experiments that had run their course.
None of the three is a DBI generic, so the bullet names only those.

That same entry also removed dbListFields() and dbGetInfo(),
but both are DBI generics and both are back:
NEWS for 1.0.8 (2019-12-17) reads "Implement `dbGetInfo()` according to the specification",
R/dbGetInfo_MariaDBConnection.R and R/dbGetInfo_MariaDBDriver.R hold the methods,
and NAMESPACE exports both through exportMethods().
Naming them as dropped RMySQL extensions would be wrong twice over,
so they are left out.

The DBI specification is linked on its pkgdown site, which serves the article as spec.html;
the intro paragraph two paragraphs above is pointed at the same address.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from 0826428 to edb2fbd Compare September 14, 2026 05:25
Base automatically changed from claude/sembr to main September 14, 2026 14:38
Scope drawn from the README's own opening
("aimed at full compliance with the DBI specification, as a replacement for the old RMySQL package"),
the DESCRIPTION (Imports DBI, bit64, blob, hms, lubridate;
SystemRequirements names the client libraries the package builds against),
the roxygen of dbConnect() (the `mysql` argument:
"supports both MariaDB and MySQL servers, but the SQL dialect and other details vary";
the secure-password section pointing at keyring),
and tests/testthat/test-DBItest.R, which runs DBItest::test_all().

The RMySQL non-goal rests on the NEWS entry for RMariaDB 0.11-1 (2016-03-24),
which records the removal of dbApply(), dbMoreResults() and dbNextResults()
as experiments that had run their course.
None of the three is a DBI generic, so the bullet names only those.

That same entry also removed dbListFields() and dbGetInfo(),
but both are DBI generics and both are back:
NEWS for 1.0.8 (2019-12-17) reads "Implement `dbGetInfo()` according to the specification",
R/dbGetInfo_MariaDBConnection.R and R/dbGetInfo_MariaDBDriver.R hold the methods,
and NAMESPACE exports both through exportMethods().
Naming them as dropped RMySQL extensions would be wrong twice over,
so they are left out.

The DBI specification is linked on its pkgdown site, which serves the article as spec.html;
the intro paragraph two paragraphs above is pointed at the same address.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
@krlmlr
krlmlr force-pushed the claude/readme-goals branch from edb2fbd to 93faea8 Compare September 14, 2026 14:38
@krlmlr
krlmlr removed this pull request from stack #564 November 29, 2026 11:08
@krlmlr
krlmlr added this pull request to stack #582 November 29, 2026 11:08
@krlmlr
krlmlr merged commit 575a4cc into main Nov 29, 2026
7 checks passed
@krlmlr
krlmlr deleted the claude/readme-goals branch November 29, 2026 11:26
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