我目前有 R 版本 3.2.2 和DiagrammeR
R 包。尝试运行以下代码时出现这两个错误:
library(DiagrammeR)
nodes <- create_nodes(nodes = seq(uniquenodes),
type = "number",
label = uniquenodes)
错误:找不到函数“create_nodes”
edges <- create_edges(from = match(df$col1, uniquenodes),
to = match(df$col2,uniquenodes),
rel = "related")
错误:找不到函数“create_edges”