* using log directory 'd:/Rcompile/CRANpkg/local/4.4/DiagrammeR.Rcheck' * using R version 4.4.3 Patched (2026-02-12 r89426 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'DiagrammeR' can be installed ... OK * checking installed package size ... OK * 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 ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] 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 ... [34s] OK * checking Rd files ... [5s] OK * checking Rd metadata ... 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 ... [1s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [37s] 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 ... [72s] ERROR Running 'testthat.R' [72s] 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 ── 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 ... [36s] OK * checking HTML version of manual ... [46s] OK * DONE Status: 2 ERRORs