Skip to content

Commit

Permalink
Ensure that dplyr is installed with srcrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Jun 5, 2023
1 parent 01a03b0 commit f4f9d77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/02-duckplyr_df-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ duckplyr_df_methods <-
mutate(decl_chr = func_decl_chr(name, code, new_fun, new_code_chr, is_tbl_return, skip_impl)) %>%
ungroup()

# If this fires, we need to install dplyr from source:
# system("R CMD INSTALL --with-keep.source ../dplyr")
stopifnot(!is.null(attr(duckplyr_df_methods$code[[1]], "srcref")))

old <-
tibble(path = fs::dir_ls("R")) %>%
mutate(first_line = map_chr(path, brio::read_lines, 1)) %>%
Expand Down

0 comments on commit f4f9d77

Please sign in to comment.