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 am not sure whether this issue falls under the purview of rlang or dplyr. Happy to post to another repo as appropriate.
Data masking doesn’t seem to be working when I use {{ }} in an anonymous function within a purrr::map() or lapply() call inside of a dplyr::mutate() call. It works when I use a predefined function or in a bare purrr::map() or lapply() call outside of dplyr::mutate(), though. Using the .data pronoun method also shows the same behaviour. Please see the reprex below.
This is an injection timing issue. I have plans to fix this for rlang 1.1 (so not the next release). However this fix will be a behaviour change that might cause too much backward incompatibility, so there is no guarantee that this will ever happen. You can track this at the original issue #845.
In the meantime, you can work around by storing your lambda function as a named function outside of the mutate, as in your select_2() example.
I am not sure whether this issue falls under the purview of
rlang
ordplyr
. Happy to post to another repo as appropriate.Data masking doesn’t seem to be working when I use
{{ }}
in an anonymous function within apurrr::map()
orlapply()
call inside of adplyr::mutate()
call. It works when I use a predefined function or in a barepurrr::map()
orlapply()
call outside ofdplyr::mutate()
, though. Using the.data
pronoun method also shows the same behaviour. Please see the reprex below.This doesn’t work
This works
This works too
Created on 2021-12-08 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: