Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

.data in tidyselect expressions is deprecated #179

Open
florisvdh opened this issue Jan 22, 2024 · 2 comments
Open

.data in tidyselect expressions is deprecated #179

florisvdh opened this issue Jan 22, 2024 · 2 comments
Labels

Comments

@florisvdh
Copy link
Member

florisvdh commented Jan 22, 2024

See https://tidyselect.r-lib.org/news/index.html#lifecycle-changes-1-2-0

The .data$x in tidyselect expressions should be replaced with quoted variable names "x", as shown by the warnings.

@florisvdh
Copy link
Member Author

There are about 364 occurrences of .data$ in the codebase.

Warnings look like below, but they are only generated when editing (debugging) {n2khab} functions, not when running them:

Use of .data in tidyselect expressions was deprecated in tidyselect 1.2.0.
ℹ Please use `"NAAM"` instead of `.data$NAAM`
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.

@florisvdh
Copy link
Member Author

When converting, we also need to distinguish tidy selection from data masking; see https://r4ds.hadley.nz/functions#data-masking-vs.-tidy-selection.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant