Closed FinYang closed 4 months ago
Unfortunately this is a limit of the translation - you need to supply it an explicit list call of what you want to apply
Edit: This was also discussed a little bit here https://github.com/tidyverse/dtplyr/issues/154#issuecomment-778163153
across
doesn't handle a list of functions created inside theacross
call. See reprex below.Created on 2024-05-07 with reprex v2.1.0
Inside
acrosss_funs
, a list of functions is identified using call namelist
, so it wouldn't work with lists of functions created in other way. https://github.com/tidyverse/dtplyr/blob/82aee6bb6d4000482a1360204252038d02542228/R/tidyeval-across.R#L42The creation is evaluated once later, but after the evaluation, it's passed through the same function
across_fus
, which again ignores the list if it's not a call namedlist
. https://github.com/tidyverse/dtplyr/blob/82aee6bb6d4000482a1360204252038d02542228/R/tidyeval-across.R#L46-L52BTW, is "
dtplyr::across
" in the error message intentional?