Skip to content

Avoid := import warnings with development S7 - #19

Merged
egenn merged 4 commits into
rtemis-org:mainfrom
t-kalinowski:fix/s7-compatibility-20261012
Nov 2, 2026
Merged

egenn merged 4 commits into
rtemis-org:mainfrom
t-kalinowski:fix/s7-compatibility-20261012

Conversation

@t-kalinowski

Copy link
Copy Markdown
Contributor

Development S7 exports :=, so importing S7 alongside data.table produces a warning when rtemis.llm loads. Import := only from S7 by excluding data.table's placeholder operator. Update the roxygen import declaration and generated NAMESPACE.

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.

Keep released S7 compatibility by guarding the new hooks and retaining
methods_register() when S7_on_load() is not exported.
@t-kalinowski

Copy link
Copy Markdown
Contributor Author

Thanks for maintaining rtemis.llm! 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 rtemis.llm to CRAN before then? Please let me know if you need more time or if there’s anything I can help with.

rtemis.llm uses data.table's := in its own code, which R CMD check
under S7 0.2.2 reports as an undefined global when data.table's
operator is excluded. Import data.table's := and exclude S7's instead.
Look up S7_on_load(), S7_on_unload(), and S7_on_build() with
getExportedValue() so the check reports no missing exports. Describe
the changes in NEWS and update the Date field.
@egenn
egenn merged commit f927c12 into rtemis-org:main Nov 2, 2026
1 check passed
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