- using R Under development (unstable) (2026-04-21 r89934)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7)
GNU Fortran (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
* current time: 2026-04-21 18:00:54 UTC
- using option ‘--no-stop-on-test-error’
- checking for file ‘DiagrammeR/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘DiagrammeR’ version ‘1.0.11’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘DiagrammeR’ can be installed ... [32s/67s] OK
See the install log for details.
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [67s/134s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [25s/42s] ERROR
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 the
> # `add_gnm_graph()` function
> graph <-
+ create_graph(
+ directed = FALSE) %>%
+ add_gnm_graph(
+ n = 10,
+ m = 15,
+ set_seed = 23)
>
> # Get leverage centrality values
> # for all nodes in the graph
> graph %>%
+ get_leverage_centrality()
Error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `igraph::neighbors()`:
! `vid` must specify exactly one vertex
Backtrace:
▆
1. ├─graph %>% get_leverage_centrality()
2. ├─DiagrammeR::get_leverage_centrality(.)
3. │ ├─... %>% unlist()
4. │ └─purrr::map(...)
5. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
6. │ ├─purrr:::with_indexed_errors(...)
7. │ │ └─base::withCallingHandlers(...)
8. │ ├─purrr:::call_with_cleanup(...)
9. │ └─DiagrammeR (local) .f(.x[[i]], ...)
10. │ ├─base::mean(...)
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
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [96s/127s] ERROR
Running ‘testthat.R’ [96s/127s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(DiagrammeR)
>
> test_check("DiagrammeR")
Saving _problems/test-get_node_calculations-256.R
[ FAIL 1 | WARN 3 | SKIP 24 | PASS 1796 ]
══ Skipped tests (24) ══════════════════════════════════════════════════════════
• On CRAN (24): 'test-add_forward_reverse_edges.R:48:1',
'test-add_graphs.R:3:1', 'test-add_graphs.R:223:1',
'test-add_graphs.R:1706:1', 'test-add_nodes_edges_from_table.R:268:1',
'test-cache_attrs.R:3:1', 'test-colorize_nodes_edges.R:219:1',
'test-create_combine_nodes.R:3:1', 'test-create_subgraph.R:3:1',
'test-delete_node_edge.R:255:1',
'test-get_select_last_nodes_edges_created.R:75:1',
'test-graph_series.R:323:1', 'test-graph_validation.R:3:1',
'test-graph_validation.R:234:1', 'test-graph_validation.R:292:1',
'test-render_graph.R:3:3', 'test-selections.R:1:1',
'test-set_get_node_edge_attrs.R:236:1', 'test-similarity_measures.R:1:1',
'test-similarity_measures.R:113:1', 'test-transform_graph.R:98:1',
'test-transform_graph.R:262:1', 'test-trav_out_until.R:1:1',
'test-traversals.R:3:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-get_node_calculations.R:255:3'): Getting leverage centrality is possible ──
<purrr_error_indexed/rlang_error/error/condition>
Error in `purrr::map(seq_along(degree_vals), function(x) { mean((degree_vals[x] - degree_vals[igraph::neighbors(ig_graph, degree_vals)])/(degree_vals[x] + degree_vals[igraph::neighbors(ig_graph, degree_vals)])) })`: i In index: 1.
Caused by error in `igraph::neighbors()`:
! `vid` must specify exactly one vertex
[ FAIL 1 | WARN 3 | SKIP 24 | PASS 1796 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [29s/37s] OK
- checking HTML version of manual ... [39s/53s] OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs