Running ‘testthat.R’ [13s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidygraph)
  
  Attaching package: 'tidygraph'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > test_check("tidygraph")
  [ FAIL 3 | WARN 27 | SKIP 0 | PASS 251 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-graph_measures.R:9:3): graph measures returns scalars ───────────
  Error in `automorphisms(graph, sh)`: At core/isomorphism/bliss.cc:139 : Invalid vertex color vector length. Invalid value
  Backtrace:
      ▆
   1. ├─testthat::expect_length(graph_automorphisms(), 1) at test-graph_measures.R:9:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─tidygraph::graph_automorphisms()
   5.   └─igraph::automorphisms(graph, sh)
  ── Error (test-node_measures.R:13:3): Node measures return corrent type ────────
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `mutate(d_tmp, ...)`: Problem while computing `val = fn`.
  Caused by error in `diversity()`:
  ! At core/properties/basic_properties.c:140 : Diversity measure works with undirected graphs only. Invalid value
  Backtrace:
       ▆
    1. ├─testthat::expect_is(get_val(gr, node_diversity(w)), "numeric") at test-node_measures.R:13:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tidygraph get_val(gr, node_diversity(w))
    5. │ └─gr %>% mutate(val = fn) %>% pull(val) at test-node_measures.R:4:2
    6. ├─dplyr::pull(., val)
    7. ├─dplyr::mutate(., val = fn)
    8. ├─tidygraph:::mutate.tbl_graph(., val = fn)
    9. │ └─tidygraph::mutate_as_tbl(.data, !!!dot)
   10. │   ├─dplyr::mutate(d_tmp, ...)
   11. │   └─dplyr:::mutate.data.frame(d_tmp, ...)
   12. │     └─dplyr:::mutate_cols(.data, dplyr_quosures(...), caller_env = caller_env())
   13. │       ├─base::withCallingHandlers(...)
   14. │       └─mask$eval_all_mutate(quo)
   15. ├─tidygraph::node_diversity(w)
   16. │ └─igraph::diversity(graph, weights = weights, vids = V(graph))
   17. └─base::.handleSimpleError(...)
   18.   └─dplyr h(simpleError(msg, call))
   19.     └─rlang::abort(...)
  ── Error (test-node_measures.R:25:3): Node measures return correct length ──────
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `mutate(d_tmp, ...)`: Problem while computing `val = fn`.
  Caused by error in `diversity()`:
  ! At core/properties/basic_properties.c:140 : Diversity measure works with undirected graphs only. Invalid value
  Backtrace:
       ▆
    1. ├─testthat::expect_length(get_val(gr, node_diversity(w)), igraph::gorder(gr)) at test-node_measures.R:25:2
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tidygraph get_val(gr, node_diversity(w))
    5. │ └─gr %>% mutate(val = fn) %>% pull(val) at test-node_measures.R:4:2
    6. ├─dplyr::pull(., val)
    7. ├─dplyr::mutate(., val = fn)
    8. ├─tidygraph:::mutate.tbl_graph(., val = fn)
    9. │ └─tidygraph::mutate_as_tbl(.data, !!!dot)
   10. │   ├─dplyr::mutate(d_tmp, ...)
   11. │   └─dplyr:::mutate.data.frame(d_tmp, ...)
   12. │     └─dplyr:::mutate_cols(.data, dplyr_quosures(...), caller_env = caller_env())
   13. │       ├─base::withCallingHandlers(...)
   14. │       └─mask$eval_all_mutate(quo)
   15. ├─tidygraph::node_diversity(w)
   16. │ └─igraph::diversity(graph, weights = weights, vids = V(graph))
   17. └─base::.handleSimpleError(...)
   18.   └─dplyr h(simpleError(msg, call))
   19.     └─rlang::abort(...)
  
  [ FAIL 3 | WARN 27 | SKIP 0 | PASS 251 ]
  Error: Test failures
  Execution halted