Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
$get_used() is relative to $current_vars(), not names(.data) (#5584)
* $get_used() is relative to $current_vars(), not names(.data) * `mutate()` always keeps grouping variables, unconditional to `.keep=` closes #5582 * documentation update for mutate(.keep=) * testthat update
- Loading branch information
1 parent
3652eb5
commit df43c73
Showing
9 changed files
with
76 additions
and
8 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,12 @@ | ||
> combine("a", 1) | ||
Warning: `combine()` is deprecated as of dplyr 1.0.0. | ||
Please use `vctrs::vec_c()` instead. | ||
|
||
Error: Can't combine `..1` <character> and `..2` <double>. | ||
|
||
> combine(factor("a"), 1L) | ||
Warning: `combine()` is deprecated as of dplyr 1.0.0. | ||
Please use `vctrs::vec_c()` instead. | ||
|
||
Error: Can't combine `..1` <factor<127a2>> and `..2` <integer>. | ||
|
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
> src_sqlite(":memory:") | ||
Warning: `src_sqlite()` is deprecated as of dplyr 1.0.0. | ||
Please use `tbl()` directly with a database connection | ||
This warning is displayed once every 8 hours. | ||
Call `lifecycle::last_warnings()` to see where this warning was generated. | ||
|
||
Error: `path` must already exist, unless `create` = TRUE. | ||
|
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 |
---|---|---|
@@ -1,10 +1,34 @@ | ||
> funs(function(si) { | ||
+ mp[si] | ||
+ }) | ||
Warning: `funs()` is deprecated as of dplyr 0.8.0. | ||
Please use a list of either functions or lambdas: | ||
|
||
# Simple named list: | ||
list(mean = mean, median = median) | ||
|
||
# Auto named with `tibble::lst()`: | ||
tibble::lst(mean, median) | ||
|
||
# Using lambdas | ||
list(~ mean(., trim = .2), ~ median(., na.rm = TRUE)) | ||
|
||
Error: `function(si) { | ||
mp[si] | ||
}` must be a function name (quoted or unquoted) or an unquoted call, not `function`. | ||
|
||
> funs(~mp[.]) | ||
Warning: `funs()` is deprecated as of dplyr 0.8.0. | ||
Please use a list of either functions or lambdas: | ||
|
||
# Simple named list: | ||
list(mean = mean, median = median) | ||
|
||
# Auto named with `tibble::lst()`: | ||
tibble::lst(mean, median) | ||
|
||
# Using lambdas | ||
list(~ mean(., trim = .2), ~ median(., na.rm = TRUE)) | ||
|
||
Error: `~mp[.]` must be a function name (quoted or unquoted) or an unquoted call, not `~`. | ||
|
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