bupaverse / bupaR

Core R package for business process analysis
http://www.bupar.net
Other
56 stars 6 forks source link

pm_layout issue with specifying fixed positions #18

Closed kkmann closed 4 years ago

kkmann commented 4 years ago

Hi,

first of all, thanks for putting this package together - very useful indeed!

I was running into problems with specifying fixed positions for my layout, see below:

library(tidyverse)
library(bupaR)

tbl_pos <- tribble(
                       ~act, ~x, ~y,
               "Blood test",  1,  1,           
                "Check-out",  2,  1,           
          "Discuss Results",  3,  1,     
                 "MRI SCAN",  4,  1,   
             "Registration",  5,  1,  
    "Triage and Assessment",  6,  1,
                    "X-Ray",  7,  1
)

patients %>% 
    process_map(
        layout = layout_pm(
            fixed_positions = tbl_pos
        )
    )

this gives me

Error: node 2, position ,!, expected two doubles

in the Rstudio Viewer. I also tried to turn tbl_pos into a data.frame without any effect. Any ideas what the problem might be and how to fix it?

kkmann commented 4 years ago

sorry, just realized this is just a meta package