Skip to content

Correct length() usage in geom-boxplot #5413

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 1 commit into from
Sep 8, 2023

Conversation

MichaelChirico
Copy link
Contributor

@MichaelChirico MichaelChirico commented Sep 8, 2023

Testing out the new lintr::length_test_linter() (r-lib/lintr#2124) came across this. I think the code does as intended "by accident", but it's better to use the "correct" code instead and not rely on some coercions producing the right answer incidentally.

Copy link
Collaborator

@teunbrand teunbrand left a comment

Choose a reason for hiding this comment

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

This subtle mistake has been present for ~15 years since 11279f6.
Looks good to me, thanks for the PR!

@teunbrand teunbrand merged commit 3664af8 into tidyverse:main Sep 8, 2023
@MichaelChirico MichaelChirico deleted the patch-2 branch September 8, 2023 23: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.

2 participants