Skip to content

Commit

Permalink
Undo custom functions that overcame DiagrammeR bugs. New DiagrammeR s…
Browse files Browse the repository at this point in the history
…upports cluster graphs.
  • Loading branch information
Adam Fleischhacker authored and Adam Fleischhacker committed Aug 9, 2023
1 parent b933dd6 commit 8728457
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 941 deletions.
4 changes: 0 additions & 4 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export(dagp_plot)
export(dirichlet)
export(exponential)
export(gamma)
export(generate_dot2)
export(install_causact_deps)
export(inverse_gamma)
export(laplace)
Expand Down Expand Up @@ -82,7 +81,6 @@ importFrom(ggplot2,labs)
importFrom(ggplot2,scale_alpha_continuous)
importFrom(ggplot2,theme)
importFrom(ggplot2,theme_minimal)
importFrom(htmlwidgets,sizingPolicy)
importFrom(igraph,graph_from_data_frame)
importFrom(igraph,topo_sort)
importFrom(lifecycle,badge)
Expand Down Expand Up @@ -113,14 +111,12 @@ importFrom(rlang,parse_expr)
importFrom(rlang,quo_name)
importFrom(rlang,set_expr)
importFrom(rstudioapi,hasFun)
importFrom(rstudioapi,isAvailable)
importFrom(rstudioapi,restartSession)
importFrom(stats,na.omit)
importFrom(stats,quantile)
importFrom(stats,rbinom)
importFrom(stringr,str_detect)
importFrom(stringr,str_replace)
importFrom(stringr,str_replace_all)
importFrom(stringr,str_sort)
importFrom(tidyr,gather)
importFrom(tidyr,unite)
Expand Down
4 changes: 2 additions & 2 deletions R/dag_render.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ dag_render <- function(graph,

dot_code = graph %>%
dag_diagrammer(shortLabel = sLabel, wrapWidth = ww) %>%
generate_dot2()
DiagrammeR::generate_dot()

# Generate a `grViz` object
grVizObject <-
grViz2(
DiagrammeR::grViz(
diagram = dot_code,
width = width,
height = height)
Expand Down
Loading

0 comments on commit 8728457

Please sign in to comment.