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

empty dots in group_by(), mutate(), and transmute() don't work correctly #248

Closed
mgirlich opened this issue May 19, 2021 · 0 comments · Fixed by #247
Closed

empty dots in group_by(), mutate(), and transmute() don't work correctly #248

mgirlich opened this issue May 19, 2021 · 0 comments · Fixed by #247

Comments

@mgirlich
Copy link
Collaborator

library(dplyr, warn.conflicts = FALSE)
library(dtplyr)

dt <- lazy_dt(tibble(x = 1), "DT")
dt %>% group_by(x) %>% group_by()
#> Error in new_step(parent, vars = parent$vars, groups = groups, class = "dtplyr_step_group", : is.character(groups) is not TRUE
dt %>% as_tibble() %>% group_by(x) %>% group_by()
#> # A tibble: 1 x 1
#>       x
#>   <dbl>
#> 1     1

dt %>% mutate(!!!list())
#> Error in `[.data.table`(copy(DT), , `:=`()): In `:=`(col1=val1, col2=val2, ...) form, all arguments must be named.

dt %>% transmute()
#> Error in new_step(parent = parent, vars = vars, groups = groups, locals = locals, : is.character(vars) is not TRUE
dt %>% transmute(!!!list())
#> Error in new_step(parent = parent, vars = vars, groups = groups, locals = locals, : is.character(vars) is not TRUE

Created on 2021-05-19 by the reprex package (v2.0.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant