Skip to content

Fix broken \link{} in movingAve2()/imovingSEM() @title tags - #71

Merged
vertesy merged 1 commit into
devfrom
fix/moving-deprecated-title-link
Aug 31, 2026
Merged

Fix broken \link{} in movingAve2()/imovingSEM() @title tags#71
vertesy merged 1 commit into
devfrom
fix/moving-deprecated-title-link

Conversation

@vertesy

@vertesy vertesy commented Aug 31, 2026

Copy link
Copy Markdown
Owner

What

The just-merged PR #65 added @title ... [Deprecated] to movingAve2() and imovingSEM(). With Roxygen: list(markdown = TRUE) (this package's setting), roxygen2's markdown parser reads a bare [Deprecated] as a markdown reference-style link and silently converts it to \link{Deprecated} in the generated .Rd file — a broken link, since no help topic named "Deprecated" exists anywhere in this package.

Confirmed by regenerating docs with roxygen2::roxygenise() from the current source and diffing against the checked-in .Rd files — before this fix, regeneration produces exactly this broken \link{Deprecated} in both man/movingAve2.Rd and man/imovingSEM.Rd.

Fix

Changed both @title tags to use parentheses, (Deprecated), instead of square brackets. Regenerated man/movingAve2.Rd and man/imovingSEM.Rd and confirmed the \link{} is gone and the rest of both files is unchanged; NAMESPACE needed no change.

Verification

  • R CMD build . succeeds.
  • Regenerated docs via roxygen2::roxygenise() and diffed: only the intended [Deprecated](Deprecated) change in the two .Rd files, nothing else.
  • R CMD check's dependency-availability step cannot complete in this sandbox: ReadWriter (a recently added hard Imports) pulls in qs, which has a compile-time incompatibility with the stringfish version buildable here. This is a pre-existing environment limitation, unrelated to this change (confirmed it also blocks a clean check on unmodified dev). Relied on direct R CMD build + roxygen2 regeneration/diffing instead.
  • Version bumped 2.8.152.8.16 in Development/config.R/DESCRIPTION per repo convention.

Small, mechanical, docs-only fix — no behavior change.


Generated by Claude Code

roxygen2's markdown mode (Roxygen: list(markdown = TRUE)) parses a
bare `[Deprecated]` in an @title as a markdown reference-style link
and silently converts it to \link{Deprecated} in the generated .Rd
file - a broken link, since no help topic named "Deprecated" exists
in this package. Confirmed by regenerating docs with roxygen2 and
diffing against the checked-in .Rd files.

Fix: use parentheses "(Deprecated)" instead of square brackets in
both @title tags, which roxygen2's markdown parser leaves as plain
text. Regenerated man/imovingSEM.Rd and man/movingAve2.Rd to confirm
the fix (no \link{} in the output); NAMESPACE needed no change.

Version bumped 2.8.15 -> 2.8.16 per repo convention for a real (if
minor) doc-correctness fix.

Note: R CMD check's dependency-availability step cannot complete in
this sandbox because ReadWriter (a recently added hard Import) pulls
in qs, which has a compile-time incompatibility with the stringfish
version buildable here - a pre-existing environment limitation
unrelated to this change. Verified instead via R CMD build (succeeds)
plus direct roxygen2 regeneration/diffing as described above.
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