title: Error in creating graph from DiagrammeR package
body: <p>I am trying to create a node-link diagram in R using the <code>DiagrammeR</code> package from the below code:</p>
  <pre><code>library(DiagrammeR)
  
  nodes &lt;- create_nodes(nodes = 1:7, type = &quot;number&quot;)
  
  edges &lt;- create_edges(from = c(1, 1, 2, 2, 3, 3),
                          to = c(2, 3, 4, 5, 6, 7),
                         rel = &quot;leading to&quot;)
  
  graph &lt;- create_graph(nodes_df = nodes, 
                        edges_df = edges, 
                        graph_attrs = &quot;layout = dot&quot;, 
                        node_attrs = &quot;fontname = Helvetica&quot;, 
                        edge_attrs = &quot;color = gray20&quot;) 
  
  # View the graph
  render_graph(graph)
  </code></pre>
  <p>But I get the following error:</p>
  <pre><code>Error in create_nodes(nodes = 1:7, type = &quot;number&quot;) : 
    could not find function &quot;create_nodes&quot;
  </code></pre>
  <p>Are there any alternative ways to create a diagram like  this in R:</p>
  <p><a href="https://i.stack.imgur.com/YFUKk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YFUKk.png" alt="node-link diagram" /></a></p>