Skip to content

Commit

Permalink
Release DiagrammeR v1.0.11 (#517)
Browse files Browse the repository at this point in the history
* Update NEWS.md

* Increment version number to 1.0.11

* Remove VignetteBuilder field

* Keep 'neato' as unadvertised layout type
  • Loading branch information
rich-iannone authored Feb 3, 2024
1 parent 008f20f commit 0b8347c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 1 addition & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: DiagrammeR
Title: Graph/Network Visualization
Version: 1.0.10.9000
Version: 1.0.11
Authors@R: c(
person("Richard", "Iannone", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-3925-190X")),
Expand Down Expand Up @@ -47,8 +47,6 @@ Suggests:
rsvg,
testthat (>= 3.1.0),
withr
VignetteBuilder:
knitr
Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
Expand Down
4 changes: 2 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# DiagrammeR (development version)
# DiagrammeR 1.0.11

* DiagrammeR now has a dependency on viridisLite instead of viridis (@olivroy, #511)

* DiagrammeR nows uses testthat 3rd edition (@olivroy, #498)

* No longer use deprecated features from tibble, igraph and tidyselect (>= 1.2.0) (@olivroy, #497, #507)

* Error messages have been reviewed and now use cli (@olivroy, #499, #502)
* Error messages have been reviewed and now use **cli** (@olivroy, #499, #502)

* It is now easier to install suggested packages on the fly. DiagrammeR now uses `rlang::check_installed()` internally. (@olivroy, #499)

Expand Down
5 changes: 3 additions & 2 deletions R/render_graph.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ render_graph <- function(
check_string(layout, allow_null = TRUE)

if (!is.null(layout)) {
rlang::arg_match0(layout, c("circle", "tree", "kk", "fr", "nicely"))
rlang::arg_match0(layout, c("circle", "tree", "kk", "fr", "nicely", "neato"))
}

# Return early if output is visNetwork.
Expand Down Expand Up @@ -213,7 +213,8 @@ render_graph <- function(
"kk" = igraph::layout_with_kk,
"fr" = igraph::layout_with_fr,
"nicely" = igraph::layout_nicely,
"circle" = igraph::layout_in_circle
"circle" = igraph::layout_in_circle,
"neato" = igraph::layout_with_fr
)

m_coords <- graph %>%
Expand Down

0 comments on commit 0b8347c

Please sign in to comment.