Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compound pipe ignored with functional sequences #200

Open
moodymudskipper opened this issue Sep 27, 2019 · 0 comments
Open

compound pipe ignored with functional sequences #200

moodymudskipper opened this issue Sep 27, 2019 · 0 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@moodymudskipper
Copy link

I would expect that f <- . %<>% head either fails, or creates a function that modifies in place, instead it just work as if we'd call f <- . %>% head

library(magrittr)
f <- . %<>% head
x <- cars
f(cars)
#>   speed dist
#> 1     4    2
#> 2     4   10
#> 3     7    4
#> 4     7   22
#> 5     8   16
#> 6     9   10
dim(cars)
#> [1] 50  2

Created on 2019-09-27 by the reprex package (v0.3.0)

@hadley hadley added the bug an unexpected problem or unintended behavior label Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants