Skip to content

compound pipe ignored with functional sequences #200

Open
@moodymudskipper

Description

@moodymudskipper

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions