-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
distinct() errors on missing columns
Fixes #4656
- Loading branch information
1 parent
0e42df8
commit eee6685
Showing
4 changed files
with
27 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
> df %>% distinct(aa, x) | ||
Error: distinct() must use existing variables | ||
* `aa` not found in `.data` | ||
|
||
> df %>% distinct(aa, bb) | ||
Error: distinct() must use existing variables | ||
* `aa` not found in `.data` | ||
* `bb` not found in `.data` | ||
|
||
> df %>% distinct(.data$aa) | ||
Error: distinct() must use existing variables | ||
* `aa` not found in `.data` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters