You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it's referring to the inner mutate that is passed directly to across. Maybe top_across() evaluates (parts of?) the expansion too early and should instead recreate the same calls? Then the error would refer to the symbol mutate instead of the result of evaluating that symbol.
Need to be careful about multiple evaluations though. If the mapped function is not a data masking function, the arguments inside ... must be evaluated only once. Maybe worth adding a unit test for that case.
The best thing is not to capture or collect ... in any way but just pass them on in the calls, and evaluate those calls in the proper environment where the dots are defined. It's also possible to "forward" dots by binding the ... symbol in an environment to the DOTSXP object of another environment. (I don't know if any of this applies here, just laying out the options in case it's useful).