tidyselect 1.1.0
-
Predicate functions must now be wrapped with
where()
.iris %>% select(where(is.factor))
We made this change to avoid puzzling error messages when a variable
is unexpectedly missing from the data frame and there is a
corresponding function in the environment:# Attempts to invoke `data()` function data.frame(x = 1) %>% select(data)
Now tidyselect will correctly complain about a missing variable
rather than trying to invoke a function.For compatibility we will support predicate functions starting with
is
for 1 version. -
eval_select()
gains anallow_rename
argument. If set toFALSE
,
renaming variables with thec(foo = bar)
syntax is an error.
This is useful to implement purely selective behaviour (#178). -
Fixed issue preventing repeated deprecation messages when
tidyselect_verbosity
is set to"verbose"
(#184). -
any_of()
now preserves the order of the input variables (#186). -
The return value of
eval_select()
is now always named, even when
inputs are constant (#173).