Skip to content

Class/generic/methods introspection#620

Merged
hadley merged 11 commits into
mainfrom
methods
Jun 15, 2026
Merged

Class/generic/methods introspection#620
hadley merged 11 commits into
mainfrom
methods

Conversation

@hadley

@hadley hadley commented May 22, 2026

Copy link
Copy Markdown
Member

Fixes #335. Fixes #435

For the first round of review I think it would be most useful to get feedback on the interface, especially the data frame that S7_methods() returns.

@hadley hadley marked this pull request as ready for review June 3, 2026 21:21
@hadley hadley changed the title WIP: class/generic/methods introspection Class/generic/methods introspection Jun 3, 2026
@hadley hadley requested review from lawremi and t-kalinowski June 3, 2026 21:22
Comment thread R/introspect.R
}
generics <- list(list(generic = generic, package = NA_character_))
} else {
generics <- attached_generics()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also discover generics in loaded but not attached namespaces?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My gut feeling is no? But that's a not particularly strongly held opinion.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with @hadley.

@lawremi lawremi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The returned data.frame makes sense to me; it's what I had imagined, as well.

@hadley hadley merged commit bf78cd3 into main Jun 15, 2026
13 checks passed
@hadley hadley deleted the methods branch June 15, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants