amoeba opened a new issue, #40858: URL: https://github.com/apache/arrow/issues/40858
### Describe the bug, including details regarding any error messages, version, and platform. While installing the package from source, I get a strange error, ```r > R CMD INSTALL --preclean --no-multiarch . * installing to library ‘/Users/bryce/Library/Caches/org.R-project.R/R/renv/library/r-380ad223/R-4.3/aarch64-apple-darwin20’ * installing *source* package ‘arrow’ ... ** using staged installation *** Generating code with data-raw/codegen.R *** > 542 functions decorated with [[arrow|acero|dataset|substrait|parquet|s3|gcs|json::export]] Error in `pmap_chr()`: ℹ In index: 1. Caused by error: ! argument "..3" is missing, with no default Backtrace: ▆ 1. ├─... %>% glue_collapse(sep = "\n") 2. ├─glue::glue_collapse(., sep = "\n") 3. ├─purrr::pmap_chr(...) 4. │ └─purrr:::pmap_("character", .l, .f, ..., .progress = .progress) 5. │ ├─purrr:::with_indexed_errors(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ ├─purrr:::call_with_cleanup(...) 8. │ └─.f(...) 9. │ └─glue::glue(...) 10. │ └─glue::glue_data(...) 11. │ └─base::lapply(...) 12. │ └─glue (local) FUN(X[[i]], ...) 13. │ ├─eval(call("force", as.symbol(paste0("..", x)))) %||% .null 14. │ ├─base::eval(call("force", as.symbol(paste0("..", x)))) 15. │ │ └─base::eval(call("force", as.symbol(paste0("..", x)))) 16. │ └─base::force(..3) 17. └─base::.handleSimpleError(...) 18. └─purrr (local) h(simpleError(msg, call)) 19. └─cli::cli_abort(...) 20. └─rlang::abort(...) Execution halted ``` Installation continues and succeeds but the error was new to me. When I run `data-raw/codegen.R` directly, I get the same error. Can anyone reproduce this? The error comes from some of the `glue::glue` calls in codegen.R and can be triggered by including a dangling comma in the call like in this basic example: ```r > x <- "x"; glue::glue("{x}",) # <- trailing comma Error in eval(call("force", as.symbol(paste0("..", x)))) : argument "..2" is missing, with no default ``` I'm really not sure what could have changed here. I'll put up a PR to remove the dangling commas but I want to figure out how this worked before and why it's not working on my system any longer. ### Component(s) R -- 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: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org