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 ──
  <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