Skip to content

DiagrammeR

Graph/Network Visualization

v1.0.12 · Apr 27, 2026 · MIT + file LICENSE

Description

Build graph/network structures using functions for stepwise addition and deletion of nodes and edges. Work with data available in tables for bulk addition of nodes, edges, and associated metadata. Use graph selections and traversals to apply changes to specific nodes or edges. A wide selection of graph algorithms allow for the analysis of graphs. Visualize the graphs and take advantage of any aesthetic properties assigned to nodes and edges.

Downloads

CRAN

60.5K

Last 30 days

451st

176K

Last 90 days

649.9K

Last year

Trend: -2.3% (30d vs prior 30d)

r2u CRAN

239

Last 30 days

1K

Last 90 days

2.8K

Last year

Trend: -23.9% (30d vs prior 30d)

autoCRAN

1

Last 7 days

14

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

conda-forge CRAN

1.1K

Last 30 days

3.2K

Last 90 days

11.4K

Last year

Trend: +1.3% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

whether package can be installed

Installation failed.
See ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/DiagrammeR.Rcheck/00install.out’ for details.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 6, 2026
ERROR 11 OK · 1 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Apr 22, 2026
ERROR r-devel-linux-x86_64-fedora-clang

examples

Running examples in ‘DiagrammeR-Ex.R’ failed
The error most likely occurred in:

> ### Name: get_leverage_centrality
> ### Title: Get leverage centrality
> ### Aliases: get_leverage_centrality
> 
> ### ** Examples
> 
> # Create a random graph using t
...[truncated]...
11. │       └─igraph::neighbors(ig_graph, degree_vals)
 12. │         └─igraph:::neighbors_impl(graph = graph, vid = v, mode = mode)
 13. │           └─cli::cli_abort(...)
 14. │             └─rlang::abort(...)
 15. └─base::unlist(.)
Execution halted
ERROR r-devel-linux-x86_64-fedora-gcc

examples

Running examples in ‘DiagrammeR-Ex.R’ failed
The error most likely occurred in:

> ### Name: get_leverage_centrality
> ### Title: Get leverage centrality
> ### Aliases: get_leverage_centrality
> 
> ### ** Examples
> 
> # Create a random graph using t
...[truncated]...
11. │       └─igraph::neighbors(ig_graph, degree_vals)
 12. │         └─igraph:::neighbors_impl(graph = graph, vid = v, mode = mode)
 13. │           └─cli::cli_abort(...)
 14. │             └─rlang::abort(...)
 15. └─base::unlist(.)
Execution halted
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘testthat’
NOTE 13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘testthat’

Code

Structure

Lines of code

78,320

Files

607

Compiled share

0%

Has compiled src

No

Language breakdown

R 38,960 (49.7%)Tests 20,883 (26.7%)Docs 18,477 (23.6%)

API

Exported functions

241

Internal functions

77

Recent export changes

v1.0.6.1−3 get_attr_dfs, set_df_as_edge_attr, set_df_as_node_attr

Testing & CI

Has tests

Yes

Test-to-code ratio

0.54

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

90.8%

\dontrun example ratio

3%

Roxygen coverage

99.6%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

15

Dep constraint coverage

94.4%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

23

First release

2015-01-09

Latest release

2026-04-27

Avg cadence

116 days

Cold removal rate

100%

Dep drift

67

LOC over versions

v0.1: 407 LOCv0.4: 1,206 LOCv0.5: 2,431 LOCv0.6: 3,267 LOCv0.7: 9,061 LOCv0.8: 13,426 LOCv0.8.1: 12,429 LOCv0.8.2: 21,371 LOCv0.8.3: 31,044 LOCv0.8.4: 31,043 LOCv0.9.0: 48,825 LOCv0.9.1: 67,357 LOCv0.9.2: 69,028 LOCv1.0.0: 80,030 LOCv1.0.1: 80,031 LOCv1.0.5: 79,947 LOCv1.0.6.1: 79,869 LOCv1.0.7: 78,543 LOCv1.0.8: 78,543 LOCv1.0.9: 78,540 LOCv1.0.10: 79,040 LOCv1.0.11: 78,154 LOCv1.0.12: 78,320 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (140)

depends

Dependency Network

Dependencies Reverse dependencies dplyr glue htmltools htmlwidgets igraph magrittr purrr RColorBrewer readr rlang cli rstudioapi scales stringr tibble +3 more dependencies integr sbfc AutoWMM DepMod ERDbuilder FAIRmaterials GE GeRnika LearnVizLMM MLwrap ODT PKbioanalysis PRISMA2020 PaRe Path.Analysis +125 more reverse deps DiagrammeR

Version History

24 tracked
updated 1.0.12 ← 1.0.11 diff Apr 27, 2026
new 1.0.11 Mar 10, 2026
updated 1.0.11 ← 1.0.10 diff Feb 2, 2024
updated 1.0.10 ← 1.0.9 diff May 17, 2023
updated 1.0.9 ← 1.0.8 diff Mar 4, 2022
updated 1.0.8 ← 1.0.7 diff Jan 23, 2022
updated 1.0.7 ← 1.0.6.1 diff Jan 14, 2022
updated 1.0.6.1 ← 1.0.5 diff May 7, 2020
updated 1.0.5 ← 1.0.1 diff Jan 15, 2020
updated 1.0.1 ← 1.0.0 diff Apr 21, 2019
updated 1.0.0 ← 0.9.2 diff Feb 28, 2018
updated 0.9.2 ← 0.9.1 diff Sep 5, 2017
updated 0.9.1 ← 0.9.0 diff Aug 20, 2017
updated 0.9.0 ← 0.8.4 diff Jan 3, 2017
updated 0.8.4 ← 0.8.3 diff Jul 16, 2016