thisisnic commented on issue #46636: URL: https://github.com/apache/arrow/issues/46636#issuecomment-2921897181
Thanks for reporting this @etiennebacher. Adding a reprex output here; executing this code in my R session gets the correct results, but when generating the reprex (with `rexprex::reprex()`) the results show the bug you mention. ``` r library(arrow) library(dplyr) code <- ' arrow_df <- arrow_table(x = c("a", "b", "c")) arrow_df |> mutate(x2 = case_when(pattern == "a" ~ "foo")) |> collect() ' tf <- tempfile(fileext = ".R") writeLines(code, tf) source(tf, local = new.env()) #> Error in `case_when()`: #> ! object 'pattern' not found ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org