Skip to content

Write out units in full in ggsave error #5091

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

Merged
merged 2 commits into from
Dec 11, 2022

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #5048.

In brief, all units are written out in full in the error message (not just inches). Also, there was a possibility that the user could see a confusing error like this:

"Dimensions exceed 50 inches (height and width are specified in pixels not pixels)."

Which is now being avoided by omitting the 'not pixels' ending of the error message.

Copy link
Member

@yutannihilation yutannihilation left a comment

Choose a reason for hiding this comment

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

Looks good!

@yutannihilation yutannihilation merged commit 0d0de37 into tidyverse:main Dec 11, 2022
@teunbrand teunbrand deleted the ggsave_unit_error branch December 11, 2022 09:22
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.

ggsave inches not pixels error difficult to parse
2 participants