Running 'testthat.R' [19s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(manynet)
  > library(migraph)
  Registered S3 methods overwritten by 'migraph':
    method              from   
    plot.diff_model     manynet
    plot.diffs_model    manynet
    plot.learn_model    manynet
    print.diff_model    manynet
    print.diffs_model   manynet
    print.learn_model   manynet
    print.node_mark     manynet
    print.tie_mark      manynet
    summary.diff_model  manynet
    summary.diffs_model manynet
    summary.learn_model manynet
  
  Attaching package: 'migraph'
  
  The following objects are masked from 'package:manynet':
  
      as_diffusion, node_is_core, node_is_cutpoint, node_is_exposed,
      node_is_fold, node_is_infected, node_is_isolate, node_is_latent,
      node_is_max, node_is_mentor, node_is_min, node_is_random,
      node_is_recovered, play_diffusion, play_diffusions, play_learning,
      play_segregation, tie_is_bridge, tie_is_loop, tie_is_max,
      tie_is_min, tie_is_multiple, tie_is_reciprocated
  
  > 
  > test_check("migraph")
  [ FAIL 5 | WARN 1 | SKIP 0 | PASS 271 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-measure_centrality.R:86:3'): node measure class works ──────────
  Error in `manynet::as_matrix(.data)/mean(manynet::as_matrix(.data))`: non-numeric argument to binary operator
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(node_reach(ison_algebra), "node_measure") at test-measure_centrality.R:86:3
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─migraph::node_reach(ison_algebra)
   5.   ├─base::rowSums(node_path_census(.data) <= k)
   6.   │ └─base::is.data.frame(x)
   7.   └─migraph::node_path_census(.data)
  ── Failure ('test-measure_holes.R:31:3'): constraint scores are reported correctly for two-mode notworks ──
  Names of node_constraint(ison_southern_women)[1:3] ('Evelyn', 'Laura', 'Theresa') don't match 'EVELYN', 'LAURA', 'THERESA'
  ── Error ('test-model_regression.R:5:1'): (code run outside of `test_that()`) ──
  Error in `manynet::to_uniplex(data, edge = getDependentName(formula))`: unused argument (edge = getDependentName(formula))
  Backtrace:
      ▆
   1. └─migraph::network_reg(...) at test-model_regression.R:5:1
   2.   └─migraph:::convertToMatrixList(formula, .data)
   3.     └─manynet::as_matrix(manynet::to_uniplex(data, edge = getDependentName(formula)))
  ── Failure ('test-model_tests.R:29:3'): test_random works ──────────────────────
  mean(cugtest3$testdist) not equal to 0.361.
  1/1 mismatches
  [1] 0.356 - 0.361 == -0.00527
  ── Failure ('test-motif_census.R:14:3'): node triad census works ───────────────
  test[1:4] not equal to c(6, 15, 20, 102).
  4/4 mismatches (average diff: 69.2)
  [1] 105 -   6 == 99
  [2] 105 -  15 == 90
  [3] 105 -  20 == 85
  [4] 105 - 102 ==  3
  
  [ FAIL 5 | WARN 1 | SKIP 0 | PASS 271 ]
  Error: Test failures
  Execution halted