Skip to content

Correct length() usage in geom-boxplot - #5413

Merged
teunbrand merged 1 commit into
tidyverse:mainfrom
MichaelChirico:patch-2
Sep 8, 2023
Merged

teunbrand merged 1 commit into
tidyverse:mainfrom
MichaelChirico:patch-2

Conversation

@MichaelChirico

@MichaelChirico MichaelChirico commented Sep 8, 2023 •

Copy link
Copy Markdown
Contributor

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.

@teunbrand teunbrand left a comment

Copy link
Copy Markdown
Collaborator

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