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

Hybrid evaluation bug in ungrouped summarise() #3233

Closed
lionel- opened this issue Nov 30, 2017 · 2 comments
Closed

Hybrid evaluation bug in ungrouped summarise() #3233

lionel- opened this issue Nov 30, 2017 · 2 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@lionel-
Copy link
Member

lionel- commented Nov 30, 2017

df <- tibble(a = c(2, 2))
summarise(df, a = sum(a), sum(a))
#> # A tibble: 1 x 2
#>       a  `sum(a)`
#>   <dbl>     <dbl>
#> 1     4 4.94e-324
@thelatemail
Copy link

thelatemail commented Nov 30, 2017

The issue seems to disappear when a group_by is involved:

df %>% group_by(1) %>% summarise(a=sum(a), sum(a))
## A tibble: 1 x 3
#   `1`     a `sum(a)`
# <dbl> <dbl>    <dbl>
#1     1     4        4

@krlmlr krlmlr added bug an unexpected problem or unintended behavior database and removed database labels Dec 12, 2017
@krlmlr
Copy link
Member

krlmlr commented Dec 12, 2017

Thanks, confirmed.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants