Skip to content

Prepare for removal of S4 classes standardGeneric and nonstandardGeneric - #16

Merged
HenrikBengtsson merged 1 commit into
futureverse:developfrom
jaganmn:no-methods-internal
Oct 20, 2026
Merged

HenrikBengtsson merged 1 commit into
futureverse:developfrom
jaganmn:no-methods-internal

Conversation

@jaganmn

@jaganmn jaganmn commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

It is planned that R 4.7.0 will prune S4 classes standardGeneric and nonstandardGeneric and their subclasses, so that all new S4 generic function objects have class genericFunction rather than inheriting from that class indirectly. Note that the to-be-pruned S4 classes are documented as for internal use by package methods, hence not for use by any contributed package. This PR guards your package against the pending change in R by eliminating usage of the to-be-pruned S4 classes while preserving existing behaviour.

@HenrikBengtsson HenrikBengtsson added this to the Next release milestone Oct 20, 2026
@HenrikBengtsson

Copy link
Copy Markdown
Collaborator

Thanks for this. I'll fix.

I've got the exact same code in progressify (https://github.com/search?q=repo%3Afutureverse%2Fprogressify+language%3Ar+standardGeneric&type=code) - I'll make sure to fix there too

@jaganmn

jaganmn commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Great, thanks. Then I won't bother with a PR for progressify.

@HenrikBengtsson
HenrikBengtsson merged commit b58b209 into futureverse:develop Oct 20, 2026
7 of 8 checks passed
HenrikBengtsson added a commit that referenced this pull request Oct 20, 2026
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