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

dplyr::cur_column don't support dtplyr #7102

Open
Longfei2 opened this issue Nov 8, 2024 · 0 comments
Open

dplyr::cur_column don't support dtplyr #7102

Longfei2 opened this issue Nov 8, 2024 · 0 comments

Comments

@Longfei2
Copy link

Longfei2 commented Nov 8, 2024

Please run these codes, and it will yeild an error message.

a <- data.frame(x1 =c(0, 1), x2 =c(1,0)) %>%
  dtplyr::lazy_dt() %>%
  dplyr::mutate(dplyr::across(.cols = c("x1", "x2"),
                                .fns = ~ ifelse(is.na(.x) | !.x, "", sub("x", "", dplyr::cur_column()
                                                                         )
                                                )
                                )
                  ) %>%
  dplyr::as_tibble()

I looked into this issue, and I found the objects from environment dplyr:::context_env will leave empty.
Image

@Longfei2 Longfei2 changed the title dplyr:cur_column don't support dtplyr dplyr::cur_column don't support dtplyr Nov 8, 2024
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

No branches or pull requests

1 participant