FWIW the global find and replace functionality in RStudio (Posit) can be used to replace `.data$xxx` with `"xxx"` using a regular expression to deal with the fact that the use of `.data` in tidyselect expressions is now deprecated.
The search term I used was `(\.data\$)(..\w+)` and the replacement term was `"\2"`.
Note there are some cases in which the .data$ syntax should remain. It may be possible to improve the regex.
#rstats #tidyselect #dplyr #deprecated #Rstudio #Posit #data
#rstats #TidySelect #dplyr #deprecated #rstudio #posit #data
#RStats #tidyverse question around #debugging:
Is there a way to get warnings to print a line number? Getting a “use all_of” warning in #TidySelect - trying to find out where in code it doesn’t like what I’m doing.
#rstats #tidyverse #debugging #TidySelect