WinVector / seplyr

Improved Standard Evaluation Interfaces for Common Data Manipulation Tasks
https://winvector.github.io/seplyr/
Other
49 stars 12 forks source link

group_summarize fails is groupvingVars is empty #4

Closed ftobin closed 5 years ago

ftobin commented 5 years ago

mtcars %>% group_summarize(c(), mpg=mpean(mpg)) fails because internal functional variable 'dg' is not set in this codepath. Same if groupingVars is NULL.

JohnMount commented 5 years ago

Sorry about that, my fault. And thank you very much for filing an issue. I have fixed it in the development version ( ref), but can not release to CRAN until they re-open their submission queue in early January ( ref ).

library("seplyr")
#> Loading required package: wrapr

group_summarize(mtcars, c(), mpg=mean(mpg))
#>        mpg
#> 1 20.09062