Skip to content

Add special-case S7 class names for S7::class_any and S7::class_missing#1873

Merged
hadley merged 3 commits into
r-lib:mainfrom
mitchelloharawild:s7-special-classes
Apr 27, 2026
Merged

Add special-case S7 class names for S7::class_any and S7::class_missing#1873
hadley merged 3 commits into
r-lib:mainfrom
mitchelloharawild:s7-special-classes

Conversation

@mitchelloharawild
Copy link
Copy Markdown
Contributor

Added S7 class name support for S7::class_any and S7::class_missing to s7_class_name().
This avoids the base-case which deparses these types into structure(list(), class = "S7_***"), resulting in long and complex names and aliases.

Resolves #1871

Comment thread tests/testthat/test-rd-usage.R Outdated
Comment thread tests/testthat/test-object-from-call.R Outdated
@hadley hadley merged commit c335b7a into r-lib:main Apr 27, 2026
12 of 13 checks passed
@hadley
Copy link
Copy Markdown
Member

hadley commented Apr 27, 2026

Thanks!

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.

Complicated doc names for S7 methods dispatching on S7::class_any

2 participants