Dynamic registration of themes #212
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there,
We've been preparing a new major release for ggplot2 and found an issue during a reverse dependency check of shared reverse dependencies. We then traced back the issue to ComplexUpset.
In essence what happened was that ComplexUpset gets build on CRAN's machines with a fixed
upset_themes
list. If ggplot2 then changes an internal about how themes work, the fixed theme list does not reflect the updates. The remedy for this would be to register theupset_themes
list when the ComplexUpset package is loaded (instead of when it is build). This PR dynamically sets the themes, which would resolve the issue in our shared reverse dependencies.Please note that I wasn't able to execute the
test-examples.R
file, and you may have to inspect the unit tests manually. Some changes in visual tests are expected, primary due to absent axis ticks no longer taking up space.You can test your code with the development version of ggplot2 by installing it as follows:
We aim to release the new ggplot2 version in about 2 weeks, and hope you can submit a fix to CRAN around that time. Hopefully this will inform you in a timely manner.
Best wishes,
Teun