Skip to content

Update constructor documentation and S7 package hooks - #98

Merged
mrcaseb merged 6 commits into
nflverse:mainfrom
t-kalinowski:fix/s7-compatibility-20261012
Oct 16, 2026
Merged

mrcaseb merged 6 commits into
nflverse:mainfrom
t-kalinowski:fix/s7-compatibility-20261012

Conversation

@t-kalinowski

Copy link
Copy Markdown
Contributor

The NFL theme-element constructors forward ... to ggpath::element_path(), while their documentation lists explicit parent arguments. This causes code/documentation mismatches with updated S7 constructors.

Document the forwarding interface and regenerate its Rd topic. Image rendering requires the separate ggpath parent-type repair.

Use the available S7 load, build, and unload hooks, retaining methods_register() with older S7. Unloading removes this package's dependency hooks and owned methods on external S7 generics. The existing S7 version requirement is preserved.

@mrcaseb

mrcaseb commented Oct 16, 2026

Copy link
Copy Markdown
Member

Thanks again @t-kalinowski!

@mrcaseb
mrcaseb merged commit 824dd6e into nflverse:main Oct 16, 2026
5 of 8 checks passed
@t-kalinowski

Copy link
Copy Markdown
Contributor Author

Thanks for including these compatibility updates in nflplotR 1.7.1 on CRAN! I wanted to let you know that I'm planning to submit the next version of S7 to CRAN on November 16 (see RConsortium/S7#786). Please let me know if anything else comes up before then.

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