This PR adresses an issue we talked about off-github.
To briefly recap, for the next release that is still far off, {ggplot2} intends to use calculated elements for various theme spacings/margins.
{patchwork} currently subsets several of these elements directly from the theme, sometimes resulting in invalid input for downstream grid/gtable functions.
The fix would be to use calc_element() to ensure any calculated properties are passed on correctly, instead of subsetting the theme.
Some failing visual tests appear unrelated to this PR.
Maybe they became slightly out of date somewhere after ggplot2 3.5.0?
In any case, these are not human visible changes in the snapshots.
Hi Thomas,
This PR adresses an issue we talked about off-github. To briefly recap, for the next release that is still far off, {ggplot2} intends to use calculated elements for various theme spacings/margins. {patchwork} currently subsets several of these elements directly from the theme, sometimes resulting in invalid input for downstream grid/gtable functions. The fix would be to use
calc_element()
to ensure any calculated properties are passed on correctly, instead of subsetting the theme.