Trying to future proof some code here. I was unable to figure out this following warning message:
snpdata <- snpdata %>%
mutate_at(vars(snpcol_start:snpcol_end),
list(~ ifelse(. == 0, "AA", ifelse(. == 1, "AB", .))))
Warning messages: 1: Using an external vector in selections was deprecated in tidyselect >1.1.0. ℹ Please use
all_of()
orany_of()
instead.# Was: data %>% select(snpcol_start)
# Now: data %>% select(all_of(snpcol_start))
See https://tidyselect.r-lib.org/reference/faq-external-vector.html. This warning is displayed once every 8 hours.
Call
lifecycle::last_lifecycle_warnings()
to see where this warning was generated. 2: Using an external vector in selections was deprecated in tidyselect 1.1.0. ℹ Please useall_of()
orany_of()
instead.# Was: data %>% select(snpcol_end)
# Now: data %>% select(all_of(snpcol_end))
See https://tidyselect.r-lib.org/reference/faq-external-vector.html. This warning is displayed once every 8 hours. Call
lifecycle::last_lifecycle_warnings()
to see where this warning was generated.
Please help, I am new to R