Skip to content

Bug: pipe_vizr not parsing base R pipes correctly #3

@pebenbow

Description

@pebenbow

I thought I fixed this today, but I guess not.

When using magrittr pipes, the diagram renders successfully:

pipe_vizr(
  output <- mtcars %>%
    select(mpg, disp, wt) %>%
    filter(wt > 2),
  direction = "TB"
)
Image

However, when running the same pipeline with base R pipes, the diagram goes wonky:

pipe_vizr(
  output <- mtcars |>
    select(mpg, disp, wt) |>
    filter(wt > 2),
  direction = "TB"
)
Image

I don't think this behavior occurs with pipe_vizr_file(), so I think this is localized to the original function.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions