Skip to content

Use expect_no_message() over expect_silent()#4

Open
DavisVaughan wants to merge 1 commit intoKopfLab:masterfrom
DavisVaughan:fix/multiple-matches
Open

Use expect_no_message() over expect_silent()#4
DavisVaughan wants to merge 1 commit intoKopfLab:masterfrom
DavisVaughan:fix/multiple-matches

Conversation

@DavisVaughan
Copy link

This PR makes your package compatible with the next version of dplyr:

The join functions in dplyr (like left_join()) now return a warning by default when a row in x matches multiple rows in y. While this is typical SQL behavior, it is often unexpected during data analysis (many people don't even know it is possible), so we've decided to make this a warning. In dplyr 1.1.0, you silence this warning with multiple = "all". In the meantime, we need to work around broken tests of yours that were expecting no output. I've done that by swapping expect_silent() for expect_no_message(), which looks to be what you are really trying to avoid.

We plan to submit dplyr 1.1.0 on January 27th.

This should be compatible with both dev and CRAN dplyr. It would help us out if you could go ahead and send a patch version of your package to CRAN ahead of time! Thanks!

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.

1 participant