Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are create_nodes() and create_edges() deprecated? #284

Closed
topspinj opened this issue Mar 23, 2018 · 5 comments
Closed

Are create_nodes() and create_edges() deprecated? #284

topspinj opened this issue Mar 23, 2018 · 5 comments

Comments

@topspinj
Copy link

The docs use create_nodes() and create_edges() but based on the code, these functions seem to be deprecated.

@Frank-Sw
Copy link

I have the same question as just used. Which functions have been used to replace these?

@timothytsai
Copy link

I'm seeing the same issue. Perhaps create_node_df() and create_edge_df() are the intended replacement.

@reblake
Copy link

reblake commented Apr 17, 2019

Same problem here. I'm trying to run the examples here http://rich-iannone.github.io/DiagrammeR/graph_creation.html and get the error "Error in create_nodes(nodes = 1:4, label = FALSE, type = "lower", style = "filled", : could not find function "create_nodes"". If these functions have indeed been deprecated, the error should tell the user what the name of the new current function is. As it is, this error is useless.

@tranktle
Copy link

This simple example works for me using create_edge_df, create_edge_df and create_graph

Create a simple NDF

nodes <-
create_node_df(
n=4,
nodes = 1:4,
shape = c("circle", "circle", "rectangle", "rectangle"),
type = "number")

Create a simple EDF

edges <-
create_edge_df(
n=4,
from = c(1, 1, 3, 1),
to = c(2, 3, 4, 4),
rel = "leading_to"
)

g <- create_graph(nodes_df=nodes,
edges_df=edges)

render_graph(g)

@olivroy
Copy link
Collaborator

olivroy commented Dec 8, 2023

@tranktle is correct. Feel free to open a new issue if something is not working as expected.

@olivroy olivroy closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants