Skip to content

Commit

Permalink
Merge pull request #503 from olivroy/issue-follow
Browse files Browse the repository at this point in the history
Add display to code when saving `as_svg = TRUE`
  • Loading branch information
rich-iannone authored Nov 9, 2023
2 parents cd0427b + 8c46d28 commit 8ae1276
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/render_graph.R
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ render_graph <- function(
grViz(diagram = dot_code)), "\n") %>%
unlist()

# create display to make return work when `as_svg = TRUE` #482
display <- grViz(diagram = dot_code, width = width, height = height)

# Get a tibble of SVG data
svg_tbl <- get_svg_tbl(svg_vec)

Expand Down
5 changes: 5 additions & 0 deletions man/DiagrammeR-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8ae1276

Please sign in to comment.