Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Deprecated vector selection #202

Open
vargamartonaron opened this issue Dec 13, 2023 · 0 comments
Open

Deprecated vector selection #202

vargamartonaron opened this issue Dec 13, 2023 · 0 comments

Comments

@vargamartonaron
Copy link

When using cor_test with external character vectors as variables, the piping selection warns of deprecation:

Replicable code:

matrix_vars <- c('var1', 'var2')
matrix_vars2 <- c('var3', 'var4')
cor_test(data, vars = matrix_vars1, vars2 = matrix_vars2)

Warning: Using an external vector in selections was deprecated in tidyselect 1.1.0.
Please use `all_of()` or `any_of()` instead.
# Was:
data %>% select(matrix_vars)

# Now:
data %>% select(all_of(matrix_vars))

See <https://tidyselect.r-lib.org/reference/faq-external-vector.html>.


Version info: 

platform       x86_64-pc-linux-gnu         
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          4                           
minor          3.2                         
year           2023                        
month          10                          
day            31                          
svn rev        85441                       
language       R                           
version.string R version 4.3.2 (2023-10-31)
nickname       Eye Holes 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant