Skip to content

Fix stale flag.names_list roxygen title and remove dead code - #43

Open
vertesy wants to merge 1 commit into
devfrom
docs-fix-flagnames-title-and-cleanup
Open

Fix stale flag.names_list roxygen title and remove dead code#43
vertesy wants to merge 1 commit into
devfrom
docs-fix-flagnames-title-and-cleanup

Conversation

@vertesy

@vertesy vertesy commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Summary

Documentation and dead-code cleanup only — no behavior change, no version bump.

  • flag.names_list()'s @title incorrectly said flag.names_list.all.new (leftover from an incomplete rename). This had corrupted the generated man/flag.names_list.Rd: its \title was wrong, and its \details section leaked raw roxygen source text from an older, superseded block (verified via a scripted name/title/leaked-marker scan across all 84 .Rd files in the repo — this is the only one affected). Fixed the source and regenerated the .Rd via roxygen2.
  • Fixed a broken doc cross-reference in idate.Rd: the literal [2] in its @param text was being parsed as a markdown link by roxygen (since Roxygen: list(markdown = TRUE)), producing a dangling \link{2}. Wrapped it in a code span instead.
  • Removed dead code: a stale "obsolete roxygen removed" comment, a commented-out superseded alternate implementation of flag.names_list(), and a fully commented-out stopif() implementation at the end of the file that's entirely superseded by the active stopif() defined earlier.
  • Removed repository cruft: an empty duplicate Development/CITATION.cff, a non-functional macOS Finder alias file, and a stale 937-line pre-refactor backup of the R source (Development/Development.bac). Development/ is .Rbuildignore'd, so none of this touches the build.

Validation

R CMD check and the existing testthat suite (7/7 passing) were run on this branch (R toolchain installed for this work). Remaining R CMD check findings on this branch are pre-existing and out of scope here (fixed in sibling PRs in this batch): the parFlags() example error, parsepvalue()'s undocumented prefix, and the %!in% Rd-name warning plus a sandbox locale warning (both environment-inherent).


Generated by Claude Code

- flag.names_list()'s @title incorrectly said "flag.names_list.all.new"
  (leftover from an incomplete rename); this corrupted the generated
  man/flag.names_list.Rd, whose \title was wrong and whose \details
  leaked raw roxygen source text from an older, superseded block.
  Fixed the source and regenerated the Rd via roxygen2.
- Fixed a broken doc cross-reference in idate.Rd: the literal "[2]" in
  its @PARAM text was being parsed as a markdown link by roxygen,
  producing a dangling \link{2}; wrapped it in a code span instead.
- Removed dead code: a stale "obsolete roxygen removed" comment, a
  commented-out superseded alternate implementation of
  flag.names_list(), and a fully commented-out stopif() implementation
  at the end of the file that is entirely superseded by the active
  stopif() defined earlier.
- Removed repository cruft: an empty duplicate Development/CITATION.cff,
  a non-functional macOS Finder alias file, and a stale 937-line
  pre-refactor backup of the R source (Development/Development.bac).
  Development/ is .Rbuildignore'd, so none of this affects the build.

No behavior change; no version bump.
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