I remove plyr, load dplyr and check the current packages
detach("package:plyr", unload=TRUE)
library(dplyr)
(.packages())
[1] "dplyr" "bindrcpp" "stats" "graphics" "grDevices" "utils" "datasets"
[8] "methods" "base"
For info here are the conflicts:
conflicts()
[1] "filter" "lag" "body<-" "intersect" "kronecker" "setdiff" "setequal"
[8] "union"
Then I use summarise and get the error. This is the same code that I used 6 months ago without issue.
by_vs_am <- group_by(mtcars, vs, am)
by_vs <- summarise(by_vs_am, n = n())
Error in summarise_impl(.data, dots) : Evaluation error: This function should not be called directly.
dplyr::summarise(by_vs_am, n = n())
– Andre Elrico"masking function r"
– Andre Elricodplyr::summarise
gives me the same error the OP is getting. – Rui Barradas