tidymodels / infer

An R package for tidyverse-friendly statistical inference
https://infer.tidymodels.org
Other
726 stars 80 forks source link

deprecated use of `...` in `dplyr::across()` #465

Closed simonpcouch closed 1 year ago

simonpcouch commented 1 year ago
library(infer)

observed_statistic <- gss %>% 
  specify(response = age) %>% 
  calculate(stat = "sd")
#> Warning message:
#> There was 1 warning in `dplyr::mutate()`.
#> ℹ In argument: `dplyr::across(...)`.
#> Caused by warning:
#> ! The `...` argument of `across()` is deprecated as of dplyr 1.1.0.
#> Supply arguments directly to `.fns` through a lambda instead.
#> 
#>   # Previously
#>   across(a:b, mean, na.rm = TRUE)
#> 
#>   # Now
#>   across(a:b, ~mean(.x, na.rm = TRUE))
#> ℹ The deprecated feature was likely used in the infer package.
#>   Please report the issue at <https://github.com/tidymodels/infer/issues>.
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
#> generated. 
github-actions[bot] commented 1 year ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.