Running 'testthat.R' [20s]
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(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")
  Ungrouping `.data`...
  Splitting by nodes
  `focus()` selected all nodes. Returning unfocused graph
  `focus()` didn't select any nodes. Returning unfocused graph
  Unfocusing graph...
  Unfocusing prior to grouping
  Unfocusing prior to morphing
  Unfocusing graph...
  Joining with `by = join_by(from, to)`
  Joining with `by = join_by(from, to)`
  Joining with `by = join_by(from, to)`
  Joining with `by = join_by(from, to)`
  Joining with `by = join_by(from, to)`
  Joining with `by = join_by(from, to)`
  Ungrouping `.data`...
  Subsetting by nodes
  Splitting by nodes
  Unfocusing prior to morphing
  [ FAIL 2 | WARN 13 | SKIP 6 | PASS 418 ]
  
  ══ Skipped tests (6) ═══════════════════════════════════════════════════════════
  • On Windows (6): 'test-centrality.R:17:3', 'test-centrality.R:35:3',
    'test-centrality.R:71:3', 'test-group.R:29:3', 'test-group.R:49:3',
    'test-group.R:69:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-centrality.R:45:3'): centrality returns correct length for focus ──
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `mutate(d_tmp, ...)`: i In argument: `cent = fn`.
  Caused by error:
  ! `cent` must be size 2 or 1, not 4.
  Backtrace:
       ▆
    1. ├─testthat::expect_length(get_cent(gr1, centrality_degree()), 2) at test-centrality.R:45:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tidygraph (local) get_cent(gr1, centrality_degree())
    5. │ └─gr %>% mutate(cent = fn) %>% pull(cent) at test-centrality.R:2:3
    6. ├─dplyr::pull(., cent)
    7. ├─dplyr::mutate(., cent = fn)
    8. ├─tidygraph:::mutate.tbl_graph(., cent = 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(...), by)
   13. │       ├─base::withCallingHandlers(...)
   14. │       └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
   15. │         └─mask$eval_all_mutate(quo)
   16. │           └─dplyr (local) eval()
   17. ├─dplyr:::dplyr_internal_error(...)
   18. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data)
   19. │   └─rlang:::signal_abort(cnd, .file)
   20. │     └─base::signalCondition(cnd)
   21. └─dplyr (local) `<fn>`(`<dpl:::__>`)
   22.   └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
  ── Error ('test-random-walk.R:3:3'): random_walk_rank returns correct data ─────
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `mutate(d_tmp, ...)`: i In argument: `walk_rank = random_walk_rank(30, 5)`.
  Caused by error in `random_walk_impl()`:
  ! At vendor/cigraph/src/paths/random_walk.c:326 : Invalid weight vector length. Invalid value
  Backtrace:
       ▆
    1. ├─dplyr::pull(...) at test-random-walk.R:3:3
    2. ├─dplyr::mutate(...)
    3. ├─tidygraph:::mutate.tbl_graph(...)
    4. │ └─tidygraph::mutate_as_tbl(.data, !!!dot)
    5. │   ├─dplyr::mutate(d_tmp, ...)
    6. │   └─dplyr:::mutate.data.frame(d_tmp, ...)
    7. │     └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
    8. │       ├─base::withCallingHandlers(...)
    9. │       └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
   10. │         └─mask$eval_all_mutate(quo)
   11. │           └─dplyr (local) eval()
   12. ├─tidygraph::random_walk_rank(30, 5)
   13. │ └─igraph::random_walk(graph, root, n, mode)
   14. │   └─igraph:::random_walk_impl(...)
   15. └─base::.handleSimpleError(...)
   16.   └─dplyr (local) h(simpleError(msg, call))
   17.     └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
  
  [ FAIL 2 | WARN 13 | SKIP 6 | PASS 418 ]
  Error: Test failures
  Execution halted