Open moodymudskipper opened 4 years ago
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
f <- . %<>% head
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)
I would expect that
f <- . %<>% head
either fails, or creates a function that modifies in place, instead it just work as if we'd callf <- . %>% head
Created on 2019-09-27 by the reprex package (v0.3.0)