Skip to content

docs: Document the return value of every function with a usage section - #896

Merged
krlmlr merged 1 commit into
mainfrom
claude/docs-return-values
Nov 14, 2026
Merged

krlmlr merged 1 commit into
mainfrom
claude/docs-return-values

Conversation

@krlmlr

@krlmlr krlmlr commented Nov 14, 2026

Copy link
Copy Markdown
Member

The release gate of #893 requires a \value section on every help page that has a \usage section. This PR adds @return tags to the roxygen comments under R/ and regenerates the corresponding man/*.Rd files; no code changes. Class and method pages that document several generics describe the return value per generic.

Pages that gain a \value section: SQLiteConnection-class, SQLiteDriver-class, SQLiteResult-class, datasetsDb, dbBeginTransaction, dbListResults, dbWriteTable, fetch, initExtension, isIdCurrent, keywords-dep, query-dep, sqlite-transaction, sqliteCopyDatabase, sqliteHasHttpVFS, sqliteQuickColumn.

Each return value was taken from the code of the function (or, for deprecated wrappers, of the function it forwards to). Docs were regenerated with roxygen2 8.1.1.9000, matching Config/roxygen2/version, so there is no unrelated Rd churn. Checked that no page with \usage lacks \value any more, that devtools::check_man() reports no issues, and that R CMD check --no-manual --no-tests passes all Rd checks.

https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC


Generated by Claude Code

Add `@return` tags to the roxygen comments of all help pages
that have a `\usage` section but lacked a `\value` section,
as required by the release gate.
Class and method pages describe the return value per generic.

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

krlmlr commented Nov 14, 2026 •

Copy link
Copy Markdown
Member Author

Accepted limitations

The clean review found nothing above Low: every new @return matches what the code returns, visibility included, and the Rd files regenerate byte for byte with the pinned roxygen2. The Low points below are wording only and stay as they are, so as not to restart CI on this PR during the release.


Generated by Claude Code

@krlmlr krlmlr mentioned this pull request Nov 14, 2026
16 of 22 tasks
@krlmlr
krlmlr merged commit 9771b0d into main Nov 14, 2026
8 checks passed
@krlmlr
krlmlr deleted the claude/docs-return-values branch November 14, 2026 19:35
@krlmlr krlmlr mentioned this pull request Nov 14, 2026
6 of 11 tasks
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