In tidyselect 1.2.0, there is a new change:
- Use of
.data
in tidyselect expressions is now deprecated to more cleanly separate tidy-select from data-masking. Replace.data$x
with"x"
and.data[[var]]
withany_of(var)
orall_of(var)
.
I have been using .data$x
inside my functions, so now all of them generate warnings. After I blindly replaced all .data$x
with "x"
, I realized this is not appropriate in all cases. While this works for select()
, it does not make sense for mutate()
. Will .data
be deprecated in other cases as well?