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

Warning from tidyselect when using variable packs #93

Open
Moohan opened this issue Aug 28, 2024 · 0 comments
Open

Warning from tidyselect when using variable packs #93

Moohan opened this issue Aug 28, 2024 · 0 comments

Comments

@Moohan
Copy link
Member

Moohan commented Aug 28, 2024

Reprex:

library(slfhelper)
options(lifecycle_verbosity = "warning")

read_slf_individual(year = "2324", col_select = ltc_vars)
#> 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(ltc_vars)
#> 
#>   # Now:
#>   data %>% select(all_of(ltc_vars))
#> 
#> See <https://tidyselect.r-lib.org/reference/faq-external-vector.html>.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
#> generated.
#> # A tibble: 4,394,544 × 19
#>     arth asthma atrialfib cancer   cvd liver  copd dementia diabetes epilepsy
#>  * <int>  <int>     <int>  <int> <int> <int> <int>    <int>    <int>    <int>
#>  1     0      0         0      0     0     0     0        0        0        0
#>  2     0      0         0      0     0     0     0        0        0        0
#>  3     0      0         0      0     0     0     0        0        0        0
#>  4     0      0         0      0     0     0     0        0        0        0
#>  5     0      0         0      0     0     0     0        0        0        0
#>  6     0      0         0      0     0     0     0        0        0        0
#>  7     0      0         0      0     0     0     0        0        1        0
#>  8     0      1         0      0     0     0     0        0        0        0
#>  9     0      0         0      0     0     0     0        0        0        0
#> 10     0      0         0      0     0     0     0        0        0        0
#> # ℹ 4,394,534 more rows
#> # ℹ 9 more variables: chd <int>, hefailure <int>, ms <int>, parkinsons <int>,
#> #   refailure <int>, congen <int>, bloodbfo <int>, endomet <int>,
#> #   digestive <int>

Created on 2024-08-28 with reprex v2.1.1

Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.1.2 (2021-11-01)
#>  os       CentOS Linux 7 (Core)
#>  system   x86_64, linux-gnu
#>  ui       X11
#>  language en_US:en
#>  collate  en_US.UTF-8
#>  ctype    en_US.UTF-8
#>  tz       Europe/London
#>  date     2024-08-28
#>  pandoc   2.18 @ /usr/lib/rstudio-server/bin/pandoc/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version date (UTC) lib source
#>  arrow         16.1.0  2024-05-25 [1] RSPM (R 4.1.0)
#>  assertthat    0.2.1   2019-03-21 [1] RSPM
#>  bit           4.0.5   2022-11-15 [1] RSPM
#>  bit64         4.0.5   2020-08-30 [1] RSPM
#>  cli           3.6.3   2024-06-21 [1] RSPM (R 4.1.0)
#>  crayon        1.5.3   2024-06-20 [1] RSPM
#>  digest        0.6.36  2024-06-23 [1] RSPM
#>  dplyr         1.1.4   2023-11-17 [1] RSPM (R 4.1.0)
#>  evaluate      0.24.0  2024-06-10 [1] RSPM
#>  fansi         1.0.6   2023-12-08 [1] RSPM (R 4.1.0)
#>  fastmap       1.2.0   2024-05-15 [1] RSPM
#>  fs            1.6.4   2024-04-25 [1] RSPM (R 4.1.0)
#>  generics      0.1.3   2022-07-05 [1] RSPM
#>  glue          1.7.0   2024-01-09 [1] RSPM (R 4.1.0)
#>  htmltools     0.5.8.1 2024-04-04 [1] RSPM (R 4.1.0)
#>  knitr         1.48    2024-07-07 [1] RSPM (R 4.1.0)
#>  lifecycle     1.0.4   2023-11-07 [1] RSPM (R 4.1.0)
#>  magrittr      2.0.3   2022-03-30 [1] RSPM (R 4.1.0)
#>  pillar        1.9.0   2023-03-22 [1] RSPM (R 4.1.0)
#>  pkgconfig     2.0.3   2019-09-22 [1] RSPM (R 4.1.0)
#>  purrr         1.0.2   2023-08-10 [1] RSPM (R 4.1.0)
#>  R6            2.5.1   2021-08-19 [1] RSPM (R 4.1.0)
#>  reprex        2.1.1   2024-07-06 [1] RSPM (R 4.1.0)
#>  rlang         1.1.4   2024-06-04 [1] RSPM (R 4.1.0)
#>  rmarkdown     2.27    2024-05-17 [1] RSPM (R 4.1.0)
#>  rstudioapi    0.16.0  2024-03-24 [1] RSPM (R 4.1.0)
#>  sessioninfo   1.2.2   2021-12-06 [1] RSPM
#>  slfhelper   * 0.10.3  2024-08-19 [1] RSPM (R 4.1.2)
#>  stringi       1.8.4   2024-05-06 [1] RSPM (R 4.1.0)
#>  stringr       1.5.1   2023-11-14 [1] RSPM (R 4.1.0)
#>  tibble        3.2.1   2023-03-20 [1] RSPM (R 4.1.0)
#>  tidyselect    1.2.1   2024-03-11 [1] RSPM (R 4.1.0)
#>  utf8          1.2.4   2023-10-22 [1] RSPM (R 4.1.0)
#>  vctrs         0.6.5   2023-12-01 [1] RSPM (R 4.1.0)
#>  withr         3.0.1   2024-07-31 [1] RSPM (R 4.1.0)
#>  xfun          0.46    2024-07-18 [1] RSPM (R 4.1.0)
#>  yaml          2.3.10  2024-07-26 [1] RSPM (R 4.1.0)
#> 
#>  [1] /mnt/homes/jamesm32/R/x86_64-pc-linux-gnu-library/4.1
#>  [2] /opt/R/4.1.2/lib/R/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────

Tidyselect help page: https://tidyselect.r-lib.org/reference/faq-external-vector.html

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