Skip to content

Wrap S7 method usage in \special{} - #1928

Merged
hadley merged 2 commits into
mainfrom
s7-method-special
Oct 5, 2026
Merged

hadley merged 2 commits into
mainfrom
s7-method-special

Conversation

@hadley

@hadley hadley commented Oct 5, 2026

Copy link
Copy Markdown
Member

🤖 Written by AI 🤖

Works around RConsortium/S7#725: R CMD check can't find S7 methods, so documenting a method with extra arguments caused codoc mismatches against the generic. \special{} usage is displayed normally but skipped by codoc(). Verified with R CMD check on a test package based on the issue's reprex (1 warning before, 0 after).

The tradeoff is that method usage is no longer checked at all; a proper fix needs something like \S7method{}{} support in R.

hadley added 2 commits October 5, 2026 07:38
Avoids codoc mismatches in R CMD check when S7 methods have extra arguments (RConsortium/S7#725).
@hadley
hadley merged commit b5071a8 into main Oct 5, 2026
13 checks passed
@hadley
hadley deleted the s7-method-special branch October 5, 2026 12:51
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.

1 participant