When using process_map and rendering a graph with the latest version of everything (see sessionInfo() below), the process maps seem to be rendering with text fonts which are too large and activity boxes which are too large (problem_rendering.png):
I believe the problem is in process_map.R file, starting at line 324:
# Since DiagrammeR does not support the necessary GraphViz attributes,
# we use a workaround to add them tot the DOT code. See the issue logged here:
# https://github.com/rich-iannone/DiagrammeR/issues/360
# hack to add 'weight' attribute to the graph
graph$edges_df %>%
mutate(len = weight, decorate = constraint) -> graph$edges_df
graph %>% render_graph() -> graph
graph$x$diagram %>%
stringr::str_replace_all("len", "weight") %>%
stringr::str_replace_all("decorate", "constraint") -> graph$x$diagram
attr(graph, "base_precedence") <- base_precedence
graph %>% return()
I am not sure this code works correctly with the latest version of DiagrammeR (or maybe some other packages that DiagrammeR depends on).
Unfortunately, the workaround fix doesn't help me because I use processanimateR to render the graphs in order to get the token animation.
When using process_map and rendering a graph with the latest version of everything (see sessionInfo() below), the process maps seem to be rendering with text fonts which are too large and activity boxes which are too large (problem_rendering.png):
However, you can render correctly using the following (at least it looks correct):
I believe the problem is in process_map.R file, starting at line 324:
I am not sure this code works correctly with the latest version of DiagrammeR (or maybe some other packages that DiagrammeR depends on).
Unfortunately, the workaround fix doesn't help me because I use processanimateR to render the graphs in order to get the token animation.
My sessionInfo is below: