rich-iannone / DiagrammeR

Graph and network visualization using tabular data in R
https://rich-iannone.github.io/DiagrammeR/
Other
1.7k stars 248 forks source link

Rendering issue in PowerBI #440

Open ivachho opened 3 years ago

ivachho commented 3 years ago

When I render my graph in Power BI, I get this error: "Error in generate_dot(graph) : object 'attribute' not found Calls: %>% -> render_graph -> generate_dot"

Everything seems to be working fine in Rstudio

mike-lawrence commented 2 years ago

I'm encountering this issue in Rstudio (v 2022.02.3 ). Here's my code:

library(DiagrammeR)
(
    create_graph()
    %>% add_node(label='L')
    %>% add_node(label='SIS')
    %>% add_node(label='fNIRS')
    %>% add_edge(
        from = 'L'
        , to = 'SIS'
    )
    %>% add_edge(
        from = 'L'
        , to = 'fNIRS'
        , edge_aes = edge_aes(style='dot')
    )
    %>% render_graph(
        layout = 'tree'
        , output = 'graph'
    )
)