Skip to content

Fix formula dispatch with development S7 - #27

Open
t-kalinowski wants to merge 8 commits into
s7-stats:masterfrom
t-kalinowski:fix/s7-compatibility-preview-20261012
Open

t-kalinowski wants to merge 8 commits into
s7-stats:masterfrom
t-kalinowski:fix/s7-compatibility-preview-20261012

Conversation

@t-kalinowski

Copy link
Copy Markdown

LINEAR_REG(dist ~ speed, cars) fails with development S7 because model-type lookup treats the formula's S3 class descriptor as an S7 object and reads @name. Read S7 class metadata only for actual S7 objects and retain the existing S3 class-name path for formulas.

Add guarded S7 load, unload, and build hooks to clean up method registrations and foreign generic aliases. The build hook runs after method declarations. Released S7 continues to use methods_register(), and the minimum S7 version is unchanged.

@t-kalinowski

Copy link
Copy Markdown
Author

Thanks for maintaining statim! I'm planning to submit the next version of S7 to CRAN on November 16 (see RConsortium/S7#786).

Would you be able to merge these compatibility changes and submit an updated version of statim to CRAN before then? Please let me know if you need more time or if there’s anything I can help with.

This branch has not been deployed

No deployments
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