USAID-OHA-SI / tameDP

Import and munge data from PEPFAR Target Setting Tools
https://usaid-oha-si.github.io/tameDP/
Other
1 stars 3 forks source link

dplyr 1.1.0 migration - summarise across #58

Open baboyma opened 1 year ago

baboyma commented 1 year ago

There is a warning for summarise accross

Warning message:
There was 1 warning in `summarise()`.
ℹ In argument: `across(targets, sum, na.rm = T)`.
ℹ In group 1: `fiscal_year = 2022`, `indicator = "CXCA_SCRN"`,
  `standardizeddisaggregate = "Age/Sex/HIVStatus"`.
Caused by warning:
! The `...` argument of `across()` is deprecated as of dplyr
  1.1.0.
Supply arguments directly to `.fns` through an anonymous function
instead.

  # Previously
  across(a:b, mean, na.rm = TRUE)

  # Now
  across(a:b, \(x) mean(x, na.rm = TRUE))