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 feature summarize_each() still in use #6869

Closed
jpmonteagudo28 opened this issue Jun 21, 2023 · 1 comment · Fixed by #6884
Closed

Deprecated feature summarize_each() still in use #6869

jpmonteagudo28 opened this issue Jun 21, 2023 · 1 comment · Fixed by #6884
Labels
bug an unexpected problem or unintended behavior lifecycle 🦋

Comments

@jpmonteagudo28
Copy link

jpmonteagudo28 commented Jun 21, 2023


The summarize_each( ) feature is still being used in dplyr even though it was deprecated in a previous version.

humanAR_df$activities <- factor(humanAR_df$activities, levels = activities[,1], labels = activities[,2])
humanAR_df <- humanAR_df %>% group_by(subject,activities) %>% summarize_each(mean)

## Warning message:
## `summarise_each_()` was deprecated in dplyr 0.7.0.
## ℹ Please use `across()` instead.
## ℹ The deprecated feature was likely used in the dplyr package.
## Please report the issue at <https://github.com/tidyverse/dplyr/issues>.
## This warning is displayed once every 8 hours.
## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
## generated. 

A warning message basically shows that across ( ) should be used instead of summarize_each( )

@jpmonteagudo28 jpmonteagudo28 changed the title Deprecated feature summarize_each_() Deprecated feature summarize_each_() still in use Jun 21, 2023
@DavisVaughan
Copy link
Member

Really its summarise_each() that is deprecated

dplyr/R/deprec-lazyeval.R

Lines 356 to 362 in 16b472f

#' `mutate_each()` and `summarise_each()` are deprecated in favour of
#' the new [across()] function that works within `summarise()` and `mutate()`.
#'
#' @keywords internal
#' @export
summarise_each <- function(tbl, funs, ...) {
summarise_each_(tbl, funs, enquos(...))

@jpmonteagudo28 jpmonteagudo28 changed the title Deprecated feature summarize_each_() still in use Deprecated feature summarize_each() still in use Jun 23, 2023
@hadley hadley added bug an unexpected problem or unintended behavior lifecycle 🦋 labels Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior lifecycle 🦋
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants