Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integers as valid input to theme #5370

Merged
merged 3 commits into from
Aug 1, 2023

Conversation

teunbrand
Copy link
Collaborator

@teunbrand teunbrand commented Jul 27, 2023

This PR aims to fix #5369.

Briefly, in the element tree, some elements were expect to be "numeric". In inherits(), this is interpreted as 'double', not 'integer or double' as one would expect in is.numeric(). This PR explicitly permits these elements to inherit from 'numeric' or 'integer'.

Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@teunbrand teunbrand merged commit d21ac51 into tidyverse:main Aug 1, 2023
12 checks passed
@teunbrand teunbrand deleted the integer_aspect_ratio branch August 1, 2023 16:53
@teunbrand
Copy link
Collaborator Author

Thanks for the review!

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.

theme(aspect.ratio=value) fails for integer values
2 participants