@@ -41,13 +41,13 @@ suppressPackageStartupMessages({
4141})
4242
4343get_exported_functions <- function (decorations , export_tag ) {
44- out <- decorations % > %
45- filter(decoration %in% paste0(export_tag , " ::export" )) % > %
46- mutate(functions = map(context , decor ::: parse_cpp_function )) % > %
44+ out <- decorations | >
45+ filter(decoration %in% paste0(export_tag , " ::export" )) | >
46+ mutate(functions = map(context , decor ::: parse_cpp_function )) | >
4747 {
4848 vec_cbind(. , vec_rbind(!!! pull(. , functions )))
49- } % > %
50- select(- functions ) % > %
49+ } | >
50+ select(- functions ) | >
5151 mutate(decoration = sub(" ::export" , " " , decoration ))
5252 message(glue(" *** > {n} functions decorated with [[{tags}::export]]" , n = nrow(out ), tags = paste0(export_tag , collapse = " |" )))
5353 out
@@ -123,8 +123,8 @@ extern "C" SEXP {sexp_signature}{{
123123#endif\n\n ' )
124124}
125125
126- cpp_functions_definitions <- arrow_exports % > %
127- select(name , return_type , args , file , line , decoration ) % > %
126+ cpp_functions_definitions <- arrow_exports | >
127+ select(name , return_type , args , file , line , decoration ) | >
128128 pmap_chr(function (name , return_type , args , file , line , decoration ) {
129129 sexp_params <- glue_collapse_data(args , " SEXP {name}_sexp" )
130130 sexp_signature <- glue(" _arrow_{name}({sexp_params})" )
@@ -147,14 +147,14 @@ cpp_functions_definitions <- arrow_exports %>%
147147 " ,
148148 sep = " \n "
149149 )
150- }) % > %
150+ }) | >
151151 glue_collapse(sep = " \n " )
152152
153- cpp_functions_registration <- arrow_exports % > %
154- select(name , return_type , args ) % > %
153+ cpp_functions_registration <- arrow_exports | >
154+ select(name , return_type , args ) | >
155155 pmap_chr(function (name , return_type , args ) {
156156 glue(' \t\t {{ "_arrow_{name}", (DL_FUNC) &_arrow_{name}, {nrow(args)}}}, ' )
157- }) % > %
157+ }) | >
158158 glue_collapse(sep = " \n " )
159159
160160cpp_file_header <- ' // Generated by using data-raw/codegen.R -> do not edit by hand
@@ -198,8 +198,8 @@ static const R_CallMethodDef CallEntries[] = {
198198
199199write_if_modified(arrow_exports_cpp , " src/arrowExports.cpp" )
200200
201- r_functions <- arrow_exports % > %
202- select(name , return_type , args ) % > %
201+ r_functions <- arrow_exports | >
202+ select(name , return_type , args ) | >
203203 pmap_chr(function (name , return_type , args ) {
204204 params <- if (nrow(args )) {
205205 paste0(" , " , glue_collapse_data(args , " {name}" ))
@@ -220,7 +220,7 @@ r_functions <- arrow_exports %>%
220220 list_params = glue_collapse_data(args , " {name}" ),
221221 sep = " \n "
222222 )
223- }) % > %
223+ }) | >
224224 glue_collapse(sep = " \n " )
225225
226226arrow_exports_r <- glue :: glue("
0 commit comments