Joe Thorley · @joethorley
179 followers · 31 posts · Server ecoevo.social

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

Last updated 2 years ago

question around :

Is there a way to get warnings to print a line number? Getting a “use all_of” warning in - trying to find out where in code it doesn’t like what I’m doing.

#rstats #tidyverse #debugging #TidySelect

Last updated 2 years ago