Skip to content

Commit 39ee595

Browse files
authored
Merge pull request #545 from rich-iannone/v1.0.12-rc
Release DiagrammeR 1.0.12
2 parents 812594e + dc1e5e2 commit 39ee595

5 files changed

Lines changed: 30 additions & 13 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: DiagrammeR
33
Title: Graph/Network Visualization
4-
Version: 1.0.11.9000
4+
Version: 1.0.12
55
Authors@R: c(
66
person("Richard", "Iannone", , "[email protected]", role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0003-3925-190X")),
@@ -19,7 +19,7 @@ URL: https://rich-iannone.github.io/DiagrammeR/,
1919
https://github.com/rich-iannone/DiagrammeR
2020
BugReports: https://github.com/rich-iannone/DiagrammeR/issues
2121
Depends:
22-
R (>= 3.2)
22+
R (>= 4.1)
2323
Imports:
2424
dplyr (>= 1.0.7),
2525
glue (>= 1.5.0),

NEWS.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
# DiagrammeR (development version)
1+
# DiagrammeR 1.0.12
2+
3+
* The minimum R version is now 4.1 to reflect usage of the native pipe operator `|>`.
4+
5+
* Fixed `get_leverage_centrality()` which erroneously passed the full degree vector instead of a single vertex index to `igraph::neighbors()` (#541).
6+
7+
* Fixed `get_authority_centrality()` and `get_eigenvector_centrality()` to safely call `igraph::hits_scores()` and handle the igraph v2+ authority/hub API (#542).
8+
9+
* Fixed GML import to correctly apply edge labels (#543).
10+
11+
* Fixed `grViz()` to correctly pass options to `Viz()` (@cderv, #530).
12+
13+
* Fixed edge attribute generation logic when edge attributes are empty strings (#521).
14+
15+
* Migrated all examples and internal code from `%>%` to the native pipe `|>` (#540).
216

317
# DiagrammeR 1.0.11
418

R/utils.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -929,13 +929,15 @@ get_svg_tbl <- function(svg_vec) {
929929
#' @noRd
930930
get_attr_tbl <- function(line) {
931931

932-
line <- gsub("<[a-z]*? ", "", line) |> gsub("\"", "'", .) |> gsub("(/>|>|>.*)", "", .)
932+
line <- gsub("<[a-z]*? ", "", line)
933+
line <- gsub("\"", "'", line)
934+
line <- gsub("(/>|>|>.*)", "", line)
933935

934936
el_attrs <-
935937
strsplit(line, "' ") |>
936-
unlist() |>
937-
gsub("'", "", .) |>
938-
strsplit("=")
938+
unlist()
939+
el_attrs <- gsub("'", "", el_attrs)
940+
el_attrs <- strsplit(el_attrs, "=")
939941

940942
stats::setNames(
941943
sapply(el_attrs, `[[`, 2),

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,6 @@ participating in this project you agree to abide by its terms.
540540

541541
## 🏛️ Governance
542542

543-
This project is primarily maintained by [Rich Iannone](https://twitter.com/riannone). Other authors may occasionally assist with some of these duties.
543+
This project is primarily maintained by Rich Iannone. Other authors may occasionally assist with some of these duties.
544544

545545
<hr>

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
<div align="center">
55

66
<hr style="color:transparent" />
7+
78
<a href='https://rich-iannone.github.io/DiagrammeR/'><img src="man/figures/logo.svg" width="350px"/></a>
89
<hr style="color:transparent"/>
910

1011
<!-- badges: start -->
12+
1113
[![CRAN
1214
status](https://www.r-pkg.org/badges/version/DiagrammeR)](https://CRAN.R-project.org/package=DiagrammeR)
1315
[![R-CMD-check](https://github.com/rich-iannone/DiagrammeR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rich-iannone/DiagrammeR/actions/workflows/R-CMD-check.yaml)
@@ -503,7 +505,7 @@ j_graph
503505
#> CACHE / <none>
504506
#> GLOBAL ATTRS / 17 are set info: `get_global_graph_attr_info()`
505507
#> GRAPH ACTIONS / <none>
506-
#> GRAPH LOG / <3 actions> -> add_edges_from_table() -> () -> drop_node_attrs()
508+
#> GRAPH LOG / <8 actions> -> () -> () -> ()
507509
```
508510

509511
Now, because we have node/edge metadata (categorical labels and
@@ -575,8 +577,8 @@ render_graph(graph, layout = "kk")
575577

576578
<img src="man/figures/graph_example_1.png">
577579

578-
Now that the graph is set up, you can create queries with
579-
pipelines to get specific answers from the graph.
580+
Now that the graph is set up, you can create queries with pipelines to
581+
get specific answers from the graph.
580582

581583
Get the average age of all the contributors. Select all nodes of type
582584
`person` (not `project`). Each node of that type has non-`NA` `age`
@@ -798,8 +800,7 @@ participating in this project you agree to abide by its terms.
798800

799801
## 🏛️ Governance
800802

801-
This project is primarily maintained by [Rich
802-
Iannone](https://twitter.com/riannone). Other authors may occasionally
803+
This project is primarily maintained by Rich Iannone. Other authors may occasionally
803804
assist with some of these duties.
804805

805806
<hr>

0 commit comments

Comments
 (0)