Skip to content

docs: Attach the "How to use the data sets" section to the package page - #59

Open
krlmlr wants to merge 1 commit into
mainfrom
claude/fix-orphan-section
Open

docs: Attach the "How to use the data sets" section to the package page#59
krlmlr wants to merge 1 commit into
mainfrom
claude/fix-orphan-section

Conversation

@krlmlr

@krlmlr krlmlr commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

The @section How to use the data sets block in R/igraphdata-package.R documents nothing, and has not for as long as it has existed.

Two separate mistakes, neither of which produces a warning. Two blank lines separate the block from the NULL below it, so roxygen2 ends the block at the gap and finds no object to attach it to — and silently drops it. And @section requires a trailing colon after the title, which it does not have. The text simply never reaches man/igraphdata-package.Rd; you can confirm it against the current file.

It moves into the "_PACKAGE" block at the top of the file, which is where package-level documentation belongs. tools::Rd2txt("man/igraphdata-package.Rd") now shows the section between Description and Author(s). The prose itself is unchanged.

Found while reformatting this file for line breaks. It is a separate pull request because it changes rendered output, which that pass deliberately does not — and because it is worth reviewing on its own rather than buried in a reformatting diff.

Independent of the documentation chain (#56, #57, #58) and based on main.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m


Generated by Claude Code

The section documented nothing.
Two blank lines separated its roxygen block from the `NULL` below it,
so roxygen2 ended the block at the gap and found no object to attach it to,
and dropped it without a word.
`@section` also requires a trailing colon after the title, which it did not have.
Neither mistake produces a warning; the text simply never reached `man/igraphdata-package.Rd`.

It is moved into the `"_PACKAGE"` block at the top of the file,
which is where package-level documentation belongs and where it now renders --
`tools::Rd2txt()` shows the section between Description and Author(s).
The prose is unchanged.

Found while reformatting this file for line breaks;
it is a separate change because it alters rendered output, which that pass does not.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
@krlmlr
krlmlr force-pushed the claude/fix-orphan-section branch from c5ec157 to f9c797d Compare September 14, 2026 05:45
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