Skip to content

Commit 63d1d18

Browse files
committed
Fix error in codegen due to change from dplyr pipes to base pipe
1 parent ba57c36 commit 63d1d18

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

r/data-raw/codegen.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ suppressPackageStartupMessages({
4040
library(vctrs)
4141
})
4242

43+
cbind_unnested_functions <- function(data) {
44+
vec_cbind(data, vec_rbind(!!!pull(data, functions)))
45+
}
46+
4347
get_exported_functions <- function(decorations, export_tag) {
4448
out <- decorations |>
4549
filter(decoration %in% paste0(export_tag, "::export")) |>
4650
mutate(functions = map(context, decor:::parse_cpp_function)) |>
47-
{
48-
vec_cbind(., vec_rbind(!!!pull(., functions)))
49-
} |>
51+
cbind_unnested_functions() |>
5052
select(-functions) |>
5153
mutate(decoration = sub("::export", "", decoration))
5254
message(glue("*** > {n} functions decorated with [[{tags}::export]]", n = nrow(out), tags = paste0(export_tag, collapse = "|")))

0 commit comments

Comments
 (0)