Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subset dispatch #6

Open
andrewallenbruce opened this issue Dec 30, 2024 · 0 comments
Open

Subset dispatch #6

andrewallenbruce opened this issue Dec 30, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@andrewallenbruce
Copy link
Owner

I think [ only dispatches on the first argument, so you need method(`[`, Klass) <- ...

The error Class specification must be an S7 class object, the result of `new_S3_class()`, an S4 class object, or a base class, not a <list> hints at this obliquely, since single-dispatch methods just take the class, not a list of classes.

Originally posted by @mjskay in RConsortium/S7#517 (comment)

@andrewallenbruce andrewallenbruce added the enhancement New feature or request label Dec 30, 2024
@andrewallenbruce andrewallenbruce self-assigned this Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant