This is an automated email from the ASF dual-hosted git repository.

thisisnic pushed a commit to branch maint-22.0.0-r
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/maint-22.0.0-r by this push:
     new 63d1d18263 Fix error in codegen due to change from dplyr pipes to base 
pipe
63d1d18263 is described below

commit 63d1d182636237f548f7de73908e75b58e13c9a9
Author: Nic Crane <[email protected]>
AuthorDate: Sat Oct 25 20:23:07 2025 +0100

    Fix error in codegen due to change from dplyr pipes to base pipe
---
 r/data-raw/codegen.R | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/r/data-raw/codegen.R b/r/data-raw/codegen.R
index faa9cab62c..7384bfafdf 100644
--- a/r/data-raw/codegen.R
+++ b/r/data-raw/codegen.R
@@ -40,13 +40,15 @@ suppressPackageStartupMessages({
   library(vctrs)
 })
 
+cbind_unnested_functions <- function(data) {
+  vec_cbind(data, vec_rbind(!!!pull(data, functions)))
+}
+
 get_exported_functions <- function(decorations, export_tag) {
   out <- decorations |>
     filter(decoration %in% paste0(export_tag, "::export")) |>
     mutate(functions = map(context, decor:::parse_cpp_function)) |>
-    {
-      vec_cbind(., vec_rbind(!!!pull(., functions)))
-    } |>
+    cbind_unnested_functions() |>
     select(-functions) |>
     mutate(decoration = sub("::export", "", decoration))
   message(glue("*** > {n} functions decorated with [[{tags}::export]]", n = 
nrow(out), tags = paste0(export_tag, collapse = "|")))

Reply via email to