tidyverse/duckplyr

how to understand how duckplyr was built?

Opened this issue · 7 comments

maelle commented

Here is what I (think I) understand and don't understand. There'd be value in writing it up in a contributing guide for fixing current problems, onboarding collaborators, maybe even inspiring people with similar goals (as a side effect, not a priority).

  • code from tools/ was sourced in alphabetical order.
  • what are the subfolders in tools/?
  • there's something ensuring duckplyr can be synced? at least I see things related to git diff/patch?
maelle commented

Related: #25

krlmlr commented

Does 99-sync.R work for you?

maelle commented

Taking notes for a contributing guide.

  • that script assumes one has a dplyr clone in the same folder as duckplyr.
maelle commented

Then got the error

Error in `mutate()`:In argument: `test_code = pmap_chr(list(name, code, oo),
  get_test_code, .progress = TRUE)`.
Caused by error in `pmap_chr()`:In index: 29.
Caused by error in `rel_try()` at duckplyr/R/rename_with.R:6:2:
! Fallback requested with DUCKPLYR_FORCE
Backtrace:
  1. base::source("~/Documents/cynkra/duckplyr/tools/99-sync.R", echo = TRUE)
 29. duckplyr:::rename_with.duckplyr_df(., identity)
 30. duckplyr:::rel_try(...)
       at duckplyr/R/rename_with.R:6:2
maelle commented

pointers would also be welcome here. 😅

maelle commented

actually I'll retry after re-starting, in case the environment variable was set from the previous try. in that case it might make sense to use withr. 🤔

maelle commented

I still get the error

No relational implementation for rename_with()
Error in `mutate()`:In argument: `test_code = pmap_chr(list(name, code, oo),
  get_test_code, .progress = TRUE)`.
Caused by error in `pmap_chr()`:In index: 29.
Caused by error in `rel_try()` at duckplyr/R/rename_with.R:6:2:
! Fallback requested with DUCKPLYR_FORCE
Backtrace:
  1. base::source("~/Documents/cynkra/duckplyr/tools/99-sync.R", echo = TRUE)
 29. duckplyr:::rename_with.duckplyr_df(., identity)
 30. duckplyr:::rel_try(...)
       at duckplyr/R/rename_with.R:6:2
Warning message:
There were 3 warnings in `mutate()`.
The first warning was:In argument: `decl_chr = func_decl(fun, code)`.In row 1.
Caused by warning in `normalizePath()`:
! path[1]="": No such file or directoryRun dplyr::last_dplyr_warnings() to see the 2 remaining warnings.