Skip to content

Preserve image units and update S7 package hooks - #25

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

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

Conversation

@t-kalinowski

Copy link
Copy Markdown
Contributor

element_path() cannot be defined with development S7 because its unit-valued size widens the numeric text property inherited from element_text. Its constructors also initialize S7_object() instead of their declared parents.

Store image sizes in image_size, while retaining numeric and grid-unit constructor inputs and rendered image dimensions. Initialize real text and rectangle parent objects, let S7 establish the class vector, and use the default raster units instead of reading an undeclared property. Unit arithmetic is accepted through the common grid unit classes.

Add public constructor and rendering regressions, and document the image-size property.

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
Owner

Thank you for the fixes @t-kalinowski! And sorry for the issue this package caused.

@mrcaseb
mrcaseb merged commit 5ee0924 into mrcaseb:main Oct 16, 2026
7 checks passed
@t-kalinowski

Copy link
Copy Markdown
Contributor Author

Thanks for including these compatibility updates in ggpath 1.1.2 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