We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mutate(x = across(c(a, b))
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
In dplyr a nested tibble is created which is not possible in dbplyr, so this should error
dplyr
dbplyr
library(dplyr, warn.conflicts = FALSE) suppressMessages(devtools::load_all("~/GitHub/dbplyr/")) tibble(a = 1, b = 2) %>% mutate(a = 2, x = across()) #> # A tibble: 1 × 3 #> a b x$a $b #> <dbl> <dbl> <dbl> <dbl> #> 1 2 2 2 2 lazy_frame(a = 1, b = 2) %>% mutate(a = 2, x = across()) #> <SQL> #> SELECT `a`, `b` #> FROM ( #> SELECT 2.0 AS `a`, `b` #> FROM `df` #> ) `q01`
Created on 2022-01-19 by the reprex package (v2.0.1)
TEST
test_that("mutate() error if gets multiple columns in across()", { df <- lazy_frame(a = 1, b = 2) expect_snapshot({ (expect_error(mutate(df, a = 2, x = across()))) }) })
The text was updated successfully, but these errors were encountered:
across(.fns = NULL)
across()
Successfully merging a pull request may close this issue.
In
dplyr
a nested tibble is created which is not possible indbplyr
, so this should errorCreated on 2022-01-19 by the reprex package (v2.0.1)
TEST
The text was updated successfully, but these errors were encountered: