Last updated on 2024-07-18 01:55:36 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 1.3.4 | 11.60 | 135.17 | 146.77 | OK | |
r-devel-linux-x86_64-debian-gcc | 1.3.4 | 12.07 | 118.67 | 130.74 | OK | |
r-devel-linux-x86_64-fedora-clang | 1.3.4 | 237.27 | ERROR | |||
r-devel-linux-x86_64-fedora-gcc | 1.3.4 | 232.25 | ERROR | |||
r-devel-windows-x86_64 | 1.3.4 | 15.00 | 134.00 | 149.00 | NOTE | |
r-patched-linux-x86_64 | 1.3.4 | 16.45 | 160.51 | 176.96 | OK | |
r-release-linux-x86_64 | 1.3.4 | 9.70 | 161.26 | 170.96 | OK | |
r-release-macos-arm64 | 1.3.4 | 67.00 | OK | |||
r-release-macos-x86_64 | 1.3.4 | 106.00 | OK | |||
r-release-windows-x86_64 | 1.3.4 | 14.00 | 135.00 | 149.00 | OK | |
r-oldrel-macos-arm64 | 1.3.4 | 69.00 | OK | |||
r-oldrel-macos-x86_64 | 1.3.4 | 155.00 | OK | |||
r-oldrel-windows-x86_64 | 1.3.4 | 18.00 | 170.00 | 188.00 | OK |
Version: 1.3.4
Check: examples
Result: ERROR
Running examples in ‘migraph-Ex.R’ failed
The error most likely occurred in:
> ### Name: core
> ### Title: Core-periphery clustering algorithms
> ### Aliases: core node_core node_coreness
>
> ### ** Examples
>
> #mpn_elite_usa_advice %>% as_tidygraph %>%
> # mutate(corep = node_core(mpn_elite_usa_advice)) %>%
> # autographr(node_color = "corep")
> network_core(mpn_elite_usa_advice)
Warning in manynet::node_mode(.data) : 'node_mode' is deprecated.
Use 'node_is_mode' instead.
See help("Deprecated") and help("migraph-deprecated").
Warning in manynet::network_nodes(.data) :
'network_nodes' is deprecated.
Use 'net_nodes' instead.
See help("Deprecated") and help("manynet-deprecated").
Warning in manynet::network_nodes(.data) :
'network_nodes' is deprecated.
Use 'net_nodes' instead.
See help("Deprecated") and help("manynet-deprecated").
Warning in manynet::network_nodes(.data) :
'network_nodes' is deprecated.
Use 'net_nodes' instead.
See help("Deprecated") and help("manynet-deprecated").
Warning in manynet::node_mode(.data) : 'node_mode' is deprecated.
Use 'node_is_mode' instead.
See help("Deprecated") and help("migraph-deprecated").
Error in manynet::create_core(.data, membership = membership) :
unused argument (membership = membership)
Calls: network_core -> <Anonymous> -> is.data.frame -> <Anonymous>
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 1.3.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [75s/217s]
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.matrix manynet
plot.network_measures manynet
plot.node_measure manynet
plot.node_member manynet
plot.tie_measure manynet
print.network_measure manynet
print.network_motif manynet
print.node_measure manynet
print.node_member manynet
print.node_motif manynet
print.tie_measure manynet
summary.node_measure manynet
summary.node_member manynet
summary.node_motif manynet
Attaching package: 'migraph'
The following objects are masked from 'package:manynet':
cluster_concor, cluster_hierarchical, k_elbow, k_silhouette,
k_strict, network_adhesion, network_assortativity, network_balance,
network_betweenness, network_brokerage_census, network_change,
network_closeness, network_cohesion, network_components,
network_congruency, network_connectedness, network_core,
network_degree, network_density, network_diameter,
network_diversity, network_dyad_census, network_efficiency,
network_eigenvector, network_equivalency, network_factions,
network_harmonic, network_hazard, network_heterophily,
network_immunity, network_indegree, network_infection_length,
network_length, network_mixed_census, network_modularity,
network_outdegree, network_reach, network_reciprocity,
network_reproduction, network_richclub, network_richness,
network_scalefree, network_smallworld, network_spatial,
network_stability, network_transitivity, network_transmissibility,
network_triad_census, network_upperbound, node_adoption_time,
node_alpha, node_automorphic_equivalence, node_betweenness,
node_bridges, node_brokerage_census, node_brokering,
node_brokering_activity, node_brokering_exclusivity,
node_closeness, node_components, node_constraint, node_core,
node_coreness, node_deg, node_degree, node_diversity,
node_eccentricity, node_edge_betweenness, node_efficiency,
node_effsize, node_eigenvector, node_equivalence, node_exposure,
node_fast_greedy, node_flow, node_fluid, node_harmonic,
node_heterophily, node_hierarchy, node_indegree, node_induced,
node_infomap, node_information, node_kernighanlin,
node_leading_eigen, node_leiden, node_louvain, node_multidegree,
node_neighbours_degree, node_optimal, node_outdegree,
node_pagerank, node_path_census, node_posneg, node_power,
node_quad_census, node_reach, node_reciprocity, node_redundancy,
node_regular_equivalence, node_richness, node_roulette,
node_spinglass, node_strong_components,
node_structural_equivalence, node_thresholds, node_tie_census,
node_transitivity, node_triad_census, node_walktrap,
node_weak_components, over_time, over_waves, tie_betweenness,
tie_closeness, tie_cohesion, tie_degree, tie_eigenvector
>
> test_check("migraph")
[ FAIL 59 | WARN 2065 | SKIP 0 | PASS 189 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-measure_centrality.R:20:3'): two mode degree centrality calculated correctly ──
bot5(node_degree(test_mat, normalized = FALSE)) not equal to c(6, 4, 7, 4, 4).
4/5 mismatches (average diff: 1)
[1] 5 - 6 == -1
[3] 6 - 7 == -1
[4] 3 - 4 == -1
[5] 3 - 4 == -1
── Failure ('test-measure_centrality.R:21:3'): two mode degree centrality calculated correctly ──
bot5(node_degree(test_igr, normalized = FALSE)) not equal to c(6, 4, 7, 4, 4).
4/5 mismatches (average diff: 1)
[1] 5 - 6 == -1
[3] 6 - 7 == -1
[4] 3 - 4 == -1
[5] 3 - 4 == -1
── Failure ('test-measure_centrality.R:22:3'): two mode degree centrality calculated correctly ──
bot5(with_graph(test_tbl, node_degree(normalized = FALSE))) not equal to c(6, 4, 7, 4, 4).
4/5 mismatches (average diff: 1)
[1] 5 - 6 == -1
[3] 6 - 7 == -1
[4] 3 - 4 == -1
[5] 3 - 4 == -1
── Failure ('test-measure_centrality.R:26:3'): two mode degree centrality calculated correctly ──
bot5(node_degree(test_mat, normalized = TRUE)) not equal to c(0.3333, 0.2222, 0.3889, 0.2222, 0.2222).
4/5 mismatches (average diff: 0.0555)
[1] 0.278 - 0.333 == -0.0555
[3] 0.333 - 0.389 == -0.0556
[4] 0.167 - 0.222 == -0.0555
[5] 0.167 - 0.222 == -0.0555
── Failure ('test-measure_centrality.R:27:3'): two mode degree centrality calculated correctly ──
bot5(node_degree(test_igr, normalized = TRUE)) not equal to c(0.3333, 0.2222, 0.3889, 0.2222, 0.2222).
4/5 mismatches (average diff: 0.0555)
[1] 0.278 - 0.333 == -0.0555
[3] 0.333 - 0.389 == -0.0556
[4] 0.167 - 0.222 == -0.0555
[5] 0.167 - 0.222 == -0.0555
── Failure ('test-measure_centrality.R:28:3'): two mode degree centrality calculated correctly ──
bot5(with_graph(test_tbl, node_degree(normalized = TRUE))) not equal to c(0.3333, 0.2222, 0.3889, 0.2222, 0.2222).
4/5 mismatches (average diff: 0.0555)
[1] 0.278 - 0.333 == -0.0555
[3] 0.333 - 0.389 == -0.0556
[4] 0.167 - 0.222 == -0.0555
[5] 0.167 - 0.222 == -0.0555
── Failure ('test-measure_centrality.R:39:3'): two mode closeness centrality calculated correctly ──
bot5(node_closeness(test_mat, normalized = FALSE)) not equal to c(0.0128, 0.0122, 0.0132, 0.0122, 0.0122).
4/5 mismatches (average diff: 0.000325)
[1] 0.0125 - 0.0128 == -3e-04
[3] 0.0128 - 0.0132 == -4e-04
[4] 0.0119 - 0.0122 == -3e-04
[5] 0.0119 - 0.0122 == -3e-04
── Failure ('test-measure_centrality.R:40:3'): two mode closeness centrality calculated correctly ──
bot5(node_closeness(test_igr, normalized = FALSE)) not equal to c(0.0128, 0.0122, 0.0132, 0.0122, 0.0122).
4/5 mismatches (average diff: 0.000325)
[1] 0.0125 - 0.0128 == -3e-04
[3] 0.0128 - 0.0132 == -4e-04
[4] 0.0119 - 0.0122 == -3e-04
[5] 0.0119 - 0.0122 == -3e-04
── Failure ('test-measure_centrality.R:41:3'): two mode closeness centrality calculated correctly ──
bot5(with_graph(test_tbl, node_closeness(normalized = FALSE))) not equal to c(0.0128, 0.0122, 0.0132, 0.0122, 0.0122).
4/5 mismatches (average diff: 0.000325)
[1] 0.0125 - 0.0128 == -3e-04
[3] 0.0128 - 0.0132 == -4e-04
[4] 0.0119 - 0.0122 == -3e-04
[5] 0.0119 - 0.0122 == -3e-04
── Failure ('test-measure_centrality.R:45:3'): two mode closeness centrality calculated correctly ──
bot5(node_closeness(test_mat, normalized = TRUE)) not equal to c(0.5641, 0.5366, 0.5789, 0.5366, 0.5366).
4/5 mismatches (average diff: 0.0136)
[1] 0.550 - 0.564 == -0.0141
[3] 0.564 - 0.579 == -0.0148
[4] 0.524 - 0.537 == -0.0128
[5] 0.524 - 0.537 == -0.0128
── Failure ('test-measure_centrality.R:46:3'): two mode closeness centrality calculated correctly ──
bot5(node_closeness(test_igr, normalized = TRUE)) not equal to c(0.5641, 0.5366, 0.5789, 0.5366, 0.5366).
4/5 mismatches (average diff: 0.0136)
[1] 0.550 - 0.564 == -0.0141
[3] 0.564 - 0.579 == -0.0148
[4] 0.524 - 0.537 == -0.0128
[5] 0.524 - 0.537 == -0.0128
── Failure ('test-measure_centrality.R:47:3'): two mode closeness centrality calculated correctly ──
bot5(with_graph(test_tbl, node_closeness(normalized = TRUE))) not equal to c(0.5641, 0.5366, 0.5789, 0.5366, 0.5366).
4/5 mismatches (average diff: 0.0136)
[1] 0.550 - 0.564 == -0.0141
[3] 0.564 - 0.579 == -0.0148
[4] 0.524 - 0.537 == -0.0128
[5] 0.524 - 0.537 == -0.0128
── Failure ('test-measure_centrality.R:55:3'): two mode betweenness centrality calculated correctly ──
top5(node_betweenness(test_mat, normalized = FALSE)) not equal to c(42.76, 22.8565, 38.7393, 22.0119, 4.7279).
5/5 mismatches (average diff: 0.097)
[1] 42.98 - 42.76 == 0.2202
[2] 22.85 - 22.86 == -0.0024
[3] 38.98 - 38.74 == 0.2403
[4] 22.02 - 22.01 == 0.0096
[5] 4.72 - 4.73 == -0.0126
── Failure ('test-measure_centrality.R:56:3'): two mode betweenness centrality calculated correctly ──
top5(node_betweenness(test_igr, normalized = FALSE)) not equal to c(42.76, 22.8565, 38.7393, 22.0119, 4.7279).
5/5 mismatches (average diff: 0.097)
[1] 42.98 - 42.76 == 0.2202
[2] 22.85 - 22.86 == -0.0024
[3] 38.98 - 38.74 == 0.2403
[4] 22.02 - 22.01 == 0.0096
[5] 4.72 - 4.73 == -0.0126
── Failure ('test-measure_centrality.R:57:3'): two mode betweenness centrality calculated correctly ──
top5(with_graph(test_tbl, node_betweenness(normalized = FALSE))) not equal to c(42.76, 22.8565, 38.7393, 22.0119, 4.7279).
5/5 mismatches (average diff: 0.097)
[1] 42.98 - 42.76 == 0.2202
[2] 22.85 - 22.86 == -0.0024
[3] 38.98 - 38.74 == 0.2403
[4] 22.02 - 22.01 == 0.0096
[5] 4.72 - 4.73 == -0.0126
── Failure ('test-measure_centrality.R:58:3'): two mode betweenness centrality calculated correctly ──
bot5(node_betweenness(test_mat, normalized = FALSE)) not equal to c(6.8186, 9.0194, 10.2354, 1.8892, 1.8892).
5/5 mismatches (average diff: 1.12)
[1] 5.17 - 6.82 == -1.647
[2] 8.89 - 9.02 == -0.131
[3] 8.18 - 10.24 == -2.057
[4] 1.01 - 1.89 == -0.876
[5] 1.01 - 1.89 == -0.876
── Failure ('test-measure_centrality.R:59:3'): two mode betweenness centrality calculated correctly ──
bot5(node_betweenness(test_igr, normalized = FALSE)) not equal to c(6.8186, 9.0194, 10.2354, 1.8892, 1.8892).
5/5 mismatches (average diff: 1.12)
[1] 5.17 - 6.82 == -1.647
[2] 8.89 - 9.02 == -0.131
[3] 8.18 - 10.24 == -2.057
[4] 1.01 - 1.89 == -0.876
[5] 1.01 - 1.89 == -0.876
── Failure ('test-measure_centrality.R:60:3'): two mode betweenness centrality calculated correctly ──
bot5(with_graph(test_tbl, node_betweenness(normalized = FALSE))) not equal to c(6.8186, 9.0194, 10.2354, 1.8892, 1.8892).
5/5 mismatches (average diff: 1.12)
[1] 5.17 - 6.82 == -1.647
[2] 8.89 - 9.02 == -0.131
[3] 8.18 - 10.24 == -2.057
[4] 1.01 - 1.89 == -0.876
[5] 1.01 - 1.89 == -0.876
── Failure ('test-measure_centrality.R:61:3'): two mode betweenness centrality calculated correctly ──
top5(node_betweenness(test_mat, normalized = TRUE), 4) not equal to c(0.0967, 0.0517, 0.0876, 0.0498, 0.0107).
2/5 mismatches (average diff: 0.00055)
[1] 0.0972 - 0.0967 == 5e-04
[3] 0.0882 - 0.0876 == 6e-04
── Failure ('test-measure_centrality.R:62:3'): two mode betweenness centrality calculated correctly ──
top5(node_betweenness(test_igr, normalized = TRUE), 4) not equal to c(0.0967, 0.0517, 0.0876, 0.0498, 0.0107).
2/5 mismatches (average diff: 0.00055)
[1] 0.0972 - 0.0967 == 5e-04
[3] 0.0882 - 0.0876 == 6e-04
── Failure ('test-measure_centrality.R:63:3'): two mode betweenness centrality calculated correctly ──
top5(...) not equal to c(0.0967, 0.0517, 0.0876, 0.0498, 0.0107).
2/5 mismatches (average diff: 0.00055)
[1] 0.0972 - 0.0967 == 5e-04
[3] 0.0882 - 0.0876 == 6e-04
── Failure ('test-measure_centrality.R:64:3'): two mode betweenness centrality calculated correctly ──
bot5(node_betweenness(test_mat, normalized = TRUE), 4) not equal to c(0.0151, 0.02, 0.0226, 0.0042, 0.0042).
5/5 mismatches (average diff: 0.0025)
[1] 0.0114 - 0.0151 == -0.0037
[2] 0.0197 - 0.0200 == -0.0003
[3] 0.0181 - 0.0226 == -0.0045
[4] 0.0022 - 0.0042 == -0.0020
[5] 0.0022 - 0.0042 == -0.0020
── Failure ('test-measure_centrality.R:65:3'): two mode betweenness centrality calculated correctly ──
bot5(node_betweenness(test_igr, normalized = TRUE), 4) not equal to c(0.0151, 0.02, 0.0226, 0.0042, 0.0042).
5/5 mismatches (average diff: 0.0025)
[1] 0.0114 - 0.0151 == -0.0037
[2] 0.0197 - 0.0200 == -0.0003
[3] 0.0181 - 0.0226 == -0.0045
[4] 0.0022 - 0.0042 == -0.0020
[5] 0.0022 - 0.0042 == -0.0020
── Failure ('test-measure_centrality.R:66:3'): two mode betweenness centrality calculated correctly ──
bot5(...) not equal to c(0.0151, 0.02, 0.0226, 0.0042, 0.0042).
5/5 mismatches (average diff: 0.0025)
[1] 0.0114 - 0.0151 == -0.0037
[2] 0.0197 - 0.0200 == -0.0003
[3] 0.0181 - 0.0226 == -0.0045
[4] 0.0022 - 0.0042 == -0.0020
[5] 0.0022 - 0.0042 == -0.0020
── Failure ('test-measure_centrality.R:75:3'): two mode eigenvector centrality calculated correctly ──
top3(node_eigenvector(test_mat, normalized = FALSE)) not equal to c(0.2991, 0.2809, 0.3338).
3/3 mismatches (average diff: 0.0196)
[1] 0.319 - 0.299 == 0.0194
[2] 0.300 - 0.281 == 0.0195
[3] 0.354 - 0.334 == 0.0198
── Failure ('test-measure_centrality.R:76:3'): two mode eigenvector centrality calculated correctly ──
top3(node_eigenvector(test_igr, normalized = FALSE)) not equal to c(0.2991, 0.2809, 0.3338).
3/3 mismatches (average diff: 0.0196)
[1] 0.319 - 0.299 == 0.0194
[2] 0.300 - 0.281 == 0.0195
[3] 0.354 - 0.334 == 0.0198
── Failure ('test-measure_centrality.R:77:3'): two mode eigenvector centrality calculated correctly ──
bot3(node_eigenvector(test_mat, normalized = FALSE)) not equal to c(0.2551, 0.1774, 0.1774).
3/3 mismatches (average diff: 0.0437)
[1] 0.216 - 0.255 == -0.0395
[2] 0.132 - 0.177 == -0.0458
[3] 0.132 - 0.177 == -0.0458
── Failure ('test-measure_centrality.R:78:3'): two mode eigenvector centrality calculated correctly ──
bot3(node_eigenvector(test_igr, normalized = FALSE)) not equal to c(0.2551, 0.1774, 0.1774).
3/3 mismatches (average diff: 0.0437)
[1] 0.216 - 0.255 == -0.0395
[2] 0.132 - 0.177 == -0.0458
[3] 0.132 - 0.177 == -0.0458
── Failure ('test-measure_centrality.R:79:3'): two mode eigenvector centrality calculated correctly ──
top3(node_eigenvector(test_igr, normalized = TRUE)) not equal to c(0.423, 0.3973, 0.4721).
3/3 mismatches (average diff: 0.0276)
[1] 0.451 - 0.423 == 0.0275
[2] 0.425 - 0.397 == 0.0275
[3] 0.500 - 0.472 == 0.0279
── Failure ('test-measure_centrality.R:103:3'): two mode degree centralisation calculated correctly ──
as.numeric(network_degree(ison_southern_women, normalized = FALSE)) not equal to c(0.1813, 0.5097).
2/2 mismatches (average diff: 0.0182)
[1] 0.202 - 0.181 == 0.0208
[2] 0.525 - 0.510 == 0.0156
── Failure ('test-measure_centrality.R:104:3'): two mode degree centralisation calculated correctly ──
as.numeric(network_degree(ison_southern_women, direction = "in")) not equal to c(0.2308, 0.4661).
2/2 mismatches (average diff: 0.0181)
[1] 0.249 - 0.231 == 0.0181
[2] 0.484 - 0.466 == 0.0181
── Failure ('test-measure_centrality.R:105:3'): two mode degree centralisation calculated correctly ──
as.numeric(network_degree(ison_southern_women, normalized = TRUE)) not equal to c(0.2268, 0.4744).
2/2 mismatches (average diff: 0.0181)
[1] 0.245 - 0.227 == 0.0178
[2] 0.493 - 0.474 == 0.0184
── Failure ('test-measure_centrality.R:109:3'): two mode closeness centralisation calculated correctly ──
as.numeric(network_closeness(ison_southern_women, normalized = TRUE)) not equal to c(0.2843, 0.4418).
2/2 mismatches (average diff: 0.00975)
[1] 0.293 - 0.284 == 0.00899
[2] 0.452 - 0.442 == 0.01051
── Failure ('test-measure_centrality.R:110:3'): two mode closeness centralisation calculated correctly ──
as.numeric(network_closeness(ison_southern_women, direction = "in")) not equal to c(0.2135, 0.5285).
2/2 mismatches (average diff: 0.00959)
[1] 0.224 - 0.213 == 0.01046
[2] 0.537 - 0.528 == 0.00872
── Failure ('test-measure_centrality.R:114:3'): two mode betweenness centralisation calculated correctly ──
as.numeric(network_betweenness(ison_southern_women, normalized = FALSE)) not equal to c(0.058, 0.2073).
2/2 mismatches (average diff: 0.00967)
[1] 0.0733 - 0.058 == 0.01532
[2] 0.2113 - 0.207 == 0.00402
── Failure ('test-measure_centrality.R:115:3'): two mode betweenness centralisation calculated correctly ──
as.numeric(network_betweenness(ison_southern_women, direction = "in")) not equal to c(0.0668, 0.1982).
2/2 mismatches (average diff: 0.00956)
[1] 0.082 - 0.0668 == 0.01516
[2] 0.202 - 0.1982 == 0.00396
── Failure ('test-measure_centrality.R:116:3'): two mode betweenness centralisation calculated correctly ──
as.numeric(network_betweenness(ison_southern_women, normalized = TRUE)) not equal to c(0.0586, 0.207).
2/2 mismatches (average diff: 0.00979)
[1] 0.0739 - 0.0586 == 0.01525
[2] 0.2113 - 0.2070 == 0.00432
── Failure ('test-measure_closure.R:26:3'): two-mode object clustering is reported correctly ──
as.numeric(network_equivalency(ison_southern_women)) not equal to 0.4872.
1/1 mismatches
[1] 0.468 - 0.487 == -0.0194
── Failure ('test-measure_features.R:5:3'): small-world metrics for two mode networks are calculated and displayed correctly ──
as.numeric(network_smallworld(ison_southern_women)) not equal to -1.04.
1/1 mismatches
[1] -0.944 - -1.04 == 0.0959
── Error ('test-measure_features.R:23:3'): network_core works ──────────────────
Error in `manynet::create_core(.data, membership = membership)`: unused argument (membership = membership)
Backtrace:
▆
1. ├─testthat::expect_s3_class(network_core(ison_adolescents), "network_measure") at test-measure_features.R:23:3
2. │ └─testthat::quasi_label(enquo(object), arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─migraph::network_core(ison_adolescents)
5. ├─stats::cor(...)
6. │ └─base::is.data.frame(y)
7. └─manynet::as_matrix(manynet::create_core(.data, membership = membership))
── Failure ('test-measure_holes.R:4:3'): redundancy is reported correctly ──────
length(node_redundancy(ison_brandes)) not equal to network_nodes(ison_brandes).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-measure_holes.R:5:3'): redundancy is reported correctly ──────
length(node_redundancy(mpn_elite_usa_advice)) not equal to network_nodes(mpn_elite_usa_advice).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-measure_holes.R:13:3'): effective size is calculated and reported correctly ──
length(node_effsize(ison_brandes)) not equal to network_nodes(ison_brandes).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-measure_holes.R:14:3'): effective size is calculated and reported correctly ──
length(node_effsize(mpn_elite_usa_advice)) not equal to network_nodes(mpn_elite_usa_advice).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-measure_holes.R:23:3'): efficiency is reported correctly ─────
length(node_efficiency(ison_brandes)) not equal to network_nodes(ison_brandes).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-measure_holes.R:24:3'): efficiency is reported correctly ─────
length(node_efficiency(mpn_elite_usa_advice)) not equal to network_nodes(mpn_elite_usa_advice).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-measure_holes.R:29:3'): constraint scores are reported correctly for two-mode notworks ──
round(unname(node_constraint(ison_southern_women)[1:3]), 2) not equal to c(0.28, 0.31, 0.29).
1/3 mismatches
[3] 0.3 - 0.29 == 0.01
── Failure ('test-measure_holes.R:42:3'): hierarchy is reported correctly ──────
length(node_hierarchy(ison_brandes)) not equal to network_nodes(ison_brandes).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-measure_holes.R:43:3'): hierarchy is reported correctly ──────
length(node_hierarchy(mpn_elite_usa_advice)) not equal to network_nodes(mpn_elite_usa_advice).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-member_equivalence.R:14:3'): equivalence clustering works ────
network_nodes(ison_adolescents) not equal to length(...).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-member_equivalence.R:15:3'): equivalence clustering works ────
network_nodes(ison_adolescents) not equal to length(node_structural_equivalence(ison_adolescents, k = 3, "hier")).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-member_equivalence.R:16:3'): equivalence clustering works ────
network_nodes(ison_adolescents) not equal to length(...).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-member_equivalence.R:17:3'): equivalence clustering works ────
network_nodes(mpn_elite_mex) not equal to length(node_regular_equivalence(mpn_elite_mex, cluster = "concor")).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-member_equivalence.R:18:3'): equivalence clustering works ────
network_nodes(mpn_elite_mex) not equal to length(node_regular_equivalence(mpn_elite_mex, "elbow")).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-member_equivalence.R:19:3'): equivalence clustering works ────
network_nodes(mpn_elite_mex) not equal to length(node_regular_equivalence(mpn_elite_mex, "strict")).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-member_equivalence.R:20:3'): equivalence clustering works ────
network_nodes(mpn_elite_usa_advice) not equal to length(...).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-member_equivalence.R:21:3'): equivalence clustering works ────
network_nodes(mpn_elite_usa_advice) not equal to length(node_automorphic_equivalence(mpn_elite_usa_advice, distance = "maximum")).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-model_tests.R:29:3'): test_random works ──────────────────────
mean(cugtest3$testdist) not equal to 0.361.
1/1 mismatches
[1] 0.341 - 0.361 == -0.0203
── Error ('test-motif_census.R:38:1'): (code run outside of `test_that()`) ─────
Error in `as.edge_list(graph)`: not coercable to edge list only data frames with 2 columns supported
Backtrace:
▆
1. └─migraph::node_quad_census(manynet::ison_southern_women) at test-motif_census.R:38:1
2. └─oaqc::oaqc(graph)
3. └─oaqc:::as.edge_list(graph)
[ FAIL 59 | WARN 2065 | SKIP 0 | PASS 189 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.3.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [80s/184s]
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.matrix manynet
plot.network_measures manynet
plot.node_measure manynet
plot.node_member manynet
plot.tie_measure manynet
print.network_measure manynet
print.network_motif manynet
print.node_measure manynet
print.node_member manynet
print.node_motif manynet
print.tie_measure manynet
summary.node_measure manynet
summary.node_member manynet
summary.node_motif manynet
Attaching package: 'migraph'
The following objects are masked from 'package:manynet':
cluster_concor, cluster_hierarchical, k_elbow, k_silhouette,
k_strict, network_adhesion, network_assortativity, network_balance,
network_betweenness, network_brokerage_census, network_change,
network_closeness, network_cohesion, network_components,
network_congruency, network_connectedness, network_core,
network_degree, network_density, network_diameter,
network_diversity, network_dyad_census, network_efficiency,
network_eigenvector, network_equivalency, network_factions,
network_harmonic, network_hazard, network_heterophily,
network_immunity, network_indegree, network_infection_length,
network_length, network_mixed_census, network_modularity,
network_outdegree, network_reach, network_reciprocity,
network_reproduction, network_richclub, network_richness,
network_scalefree, network_smallworld, network_spatial,
network_stability, network_transitivity, network_transmissibility,
network_triad_census, network_upperbound, node_adoption_time,
node_alpha, node_automorphic_equivalence, node_betweenness,
node_bridges, node_brokerage_census, node_brokering,
node_brokering_activity, node_brokering_exclusivity,
node_closeness, node_components, node_constraint, node_core,
node_coreness, node_deg, node_degree, node_diversity,
node_eccentricity, node_edge_betweenness, node_efficiency,
node_effsize, node_eigenvector, node_equivalence, node_exposure,
node_fast_greedy, node_flow, node_fluid, node_harmonic,
node_heterophily, node_hierarchy, node_indegree, node_induced,
node_infomap, node_information, node_kernighanlin,
node_leading_eigen, node_leiden, node_louvain, node_multidegree,
node_neighbours_degree, node_optimal, node_outdegree,
node_pagerank, node_path_census, node_posneg, node_power,
node_quad_census, node_reach, node_reciprocity, node_redundancy,
node_regular_equivalence, node_richness, node_roulette,
node_spinglass, node_strong_components,
node_structural_equivalence, node_thresholds, node_tie_census,
node_transitivity, node_triad_census, node_walktrap,
node_weak_components, over_time, over_waves, tie_betweenness,
tie_closeness, tie_cohesion, tie_degree, tie_eigenvector
>
> test_check("migraph")
[ FAIL 59 | WARN 2065 | SKIP 0 | PASS 189 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-measure_centrality.R:20:3'): two mode degree centrality calculated correctly ──
bot5(node_degree(test_mat, normalized = FALSE)) not equal to c(6, 4, 7, 4, 4).
4/5 mismatches (average diff: 1)
[1] 5 - 6 == -1
[3] 6 - 7 == -1
[4] 3 - 4 == -1
[5] 3 - 4 == -1
── Failure ('test-measure_centrality.R:21:3'): two mode degree centrality calculated correctly ──
bot5(node_degree(test_igr, normalized = FALSE)) not equal to c(6, 4, 7, 4, 4).
4/5 mismatches (average diff: 1)
[1] 5 - 6 == -1
[3] 6 - 7 == -1
[4] 3 - 4 == -1
[5] 3 - 4 == -1
── Failure ('test-measure_centrality.R:22:3'): two mode degree centrality calculated correctly ──
bot5(with_graph(test_tbl, node_degree(normalized = FALSE))) not equal to c(6, 4, 7, 4, 4).
4/5 mismatches (average diff: 1)
[1] 5 - 6 == -1
[3] 6 - 7 == -1
[4] 3 - 4 == -1
[5] 3 - 4 == -1
── Failure ('test-measure_centrality.R:26:3'): two mode degree centrality calculated correctly ──
bot5(node_degree(test_mat, normalized = TRUE)) not equal to c(0.3333, 0.2222, 0.3889, 0.2222, 0.2222).
4/5 mismatches (average diff: 0.0555)
[1] 0.278 - 0.333 == -0.0555
[3] 0.333 - 0.389 == -0.0556
[4] 0.167 - 0.222 == -0.0555
[5] 0.167 - 0.222 == -0.0555
── Failure ('test-measure_centrality.R:27:3'): two mode degree centrality calculated correctly ──
bot5(node_degree(test_igr, normalized = TRUE)) not equal to c(0.3333, 0.2222, 0.3889, 0.2222, 0.2222).
4/5 mismatches (average diff: 0.0555)
[1] 0.278 - 0.333 == -0.0555
[3] 0.333 - 0.389 == -0.0556
[4] 0.167 - 0.222 == -0.0555
[5] 0.167 - 0.222 == -0.0555
── Failure ('test-measure_centrality.R:28:3'): two mode degree centrality calculated correctly ──
bot5(with_graph(test_tbl, node_degree(normalized = TRUE))) not equal to c(0.3333, 0.2222, 0.3889, 0.2222, 0.2222).
4/5 mismatches (average diff: 0.0555)
[1] 0.278 - 0.333 == -0.0555
[3] 0.333 - 0.389 == -0.0556
[4] 0.167 - 0.222 == -0.0555
[5] 0.167 - 0.222 == -0.0555
── Failure ('test-measure_centrality.R:39:3'): two mode closeness centrality calculated correctly ──
bot5(node_closeness(test_mat, normalized = FALSE)) not equal to c(0.0128, 0.0122, 0.0132, 0.0122, 0.0122).
4/5 mismatches (average diff: 0.000325)
[1] 0.0125 - 0.0128 == -3e-04
[3] 0.0128 - 0.0132 == -4e-04
[4] 0.0119 - 0.0122 == -3e-04
[5] 0.0119 - 0.0122 == -3e-04
── Failure ('test-measure_centrality.R:40:3'): two mode closeness centrality calculated correctly ──
bot5(node_closeness(test_igr, normalized = FALSE)) not equal to c(0.0128, 0.0122, 0.0132, 0.0122, 0.0122).
4/5 mismatches (average diff: 0.000325)
[1] 0.0125 - 0.0128 == -3e-04
[3] 0.0128 - 0.0132 == -4e-04
[4] 0.0119 - 0.0122 == -3e-04
[5] 0.0119 - 0.0122 == -3e-04
── Failure ('test-measure_centrality.R:41:3'): two mode closeness centrality calculated correctly ──
bot5(with_graph(test_tbl, node_closeness(normalized = FALSE))) not equal to c(0.0128, 0.0122, 0.0132, 0.0122, 0.0122).
4/5 mismatches (average diff: 0.000325)
[1] 0.0125 - 0.0128 == -3e-04
[3] 0.0128 - 0.0132 == -4e-04
[4] 0.0119 - 0.0122 == -3e-04
[5] 0.0119 - 0.0122 == -3e-04
── Failure ('test-measure_centrality.R:45:3'): two mode closeness centrality calculated correctly ──
bot5(node_closeness(test_mat, normalized = TRUE)) not equal to c(0.5641, 0.5366, 0.5789, 0.5366, 0.5366).
4/5 mismatches (average diff: 0.0136)
[1] 0.550 - 0.564 == -0.0141
[3] 0.564 - 0.579 == -0.0148
[4] 0.524 - 0.537 == -0.0128
[5] 0.524 - 0.537 == -0.0128
── Failure ('test-measure_centrality.R:46:3'): two mode closeness centrality calculated correctly ──
bot5(node_closeness(test_igr, normalized = TRUE)) not equal to c(0.5641, 0.5366, 0.5789, 0.5366, 0.5366).
4/5 mismatches (average diff: 0.0136)
[1] 0.550 - 0.564 == -0.0141
[3] 0.564 - 0.579 == -0.0148
[4] 0.524 - 0.537 == -0.0128
[5] 0.524 - 0.537 == -0.0128
── Failure ('test-measure_centrality.R:47:3'): two mode closeness centrality calculated correctly ──
bot5(with_graph(test_tbl, node_closeness(normalized = TRUE))) not equal to c(0.5641, 0.5366, 0.5789, 0.5366, 0.5366).
4/5 mismatches (average diff: 0.0136)
[1] 0.550 - 0.564 == -0.0141
[3] 0.564 - 0.579 == -0.0148
[4] 0.524 - 0.537 == -0.0128
[5] 0.524 - 0.537 == -0.0128
── Failure ('test-measure_centrality.R:55:3'): two mode betweenness centrality calculated correctly ──
top5(node_betweenness(test_mat, normalized = FALSE)) not equal to c(42.76, 22.8565, 38.7393, 22.0119, 4.7279).
5/5 mismatches (average diff: 0.097)
[1] 42.98 - 42.76 == 0.2202
[2] 22.85 - 22.86 == -0.0024
[3] 38.98 - 38.74 == 0.2403
[4] 22.02 - 22.01 == 0.0096
[5] 4.72 - 4.73 == -0.0126
── Failure ('test-measure_centrality.R:56:3'): two mode betweenness centrality calculated correctly ──
top5(node_betweenness(test_igr, normalized = FALSE)) not equal to c(42.76, 22.8565, 38.7393, 22.0119, 4.7279).
5/5 mismatches (average diff: 0.097)
[1] 42.98 - 42.76 == 0.2202
[2] 22.85 - 22.86 == -0.0024
[3] 38.98 - 38.74 == 0.2403
[4] 22.02 - 22.01 == 0.0096
[5] 4.72 - 4.73 == -0.0126
── Failure ('test-measure_centrality.R:57:3'): two mode betweenness centrality calculated correctly ──
top5(with_graph(test_tbl, node_betweenness(normalized = FALSE))) not equal to c(42.76, 22.8565, 38.7393, 22.0119, 4.7279).
5/5 mismatches (average diff: 0.097)
[1] 42.98 - 42.76 == 0.2202
[2] 22.85 - 22.86 == -0.0024
[3] 38.98 - 38.74 == 0.2403
[4] 22.02 - 22.01 == 0.0096
[5] 4.72 - 4.73 == -0.0126
── Failure ('test-measure_centrality.R:58:3'): two mode betweenness centrality calculated correctly ──
bot5(node_betweenness(test_mat, normalized = FALSE)) not equal to c(6.8186, 9.0194, 10.2354, 1.8892, 1.8892).
5/5 mismatches (average diff: 1.12)
[1] 5.17 - 6.82 == -1.647
[2] 8.89 - 9.02 == -0.131
[3] 8.18 - 10.24 == -2.057
[4] 1.01 - 1.89 == -0.876
[5] 1.01 - 1.89 == -0.876
── Failure ('test-measure_centrality.R:59:3'): two mode betweenness centrality calculated correctly ──
bot5(node_betweenness(test_igr, normalized = FALSE)) not equal to c(6.8186, 9.0194, 10.2354, 1.8892, 1.8892).
5/5 mismatches (average diff: 1.12)
[1] 5.17 - 6.82 == -1.647
[2] 8.89 - 9.02 == -0.131
[3] 8.18 - 10.24 == -2.057
[4] 1.01 - 1.89 == -0.876
[5] 1.01 - 1.89 == -0.876
── Failure ('test-measure_centrality.R:60:3'): two mode betweenness centrality calculated correctly ──
bot5(with_graph(test_tbl, node_betweenness(normalized = FALSE))) not equal to c(6.8186, 9.0194, 10.2354, 1.8892, 1.8892).
5/5 mismatches (average diff: 1.12)
[1] 5.17 - 6.82 == -1.647
[2] 8.89 - 9.02 == -0.131
[3] 8.18 - 10.24 == -2.057
[4] 1.01 - 1.89 == -0.876
[5] 1.01 - 1.89 == -0.876
── Failure ('test-measure_centrality.R:61:3'): two mode betweenness centrality calculated correctly ──
top5(node_betweenness(test_mat, normalized = TRUE), 4) not equal to c(0.0967, 0.0517, 0.0876, 0.0498, 0.0107).
2/5 mismatches (average diff: 0.00055)
[1] 0.0972 - 0.0967 == 5e-04
[3] 0.0882 - 0.0876 == 6e-04
── Failure ('test-measure_centrality.R:62:3'): two mode betweenness centrality calculated correctly ──
top5(node_betweenness(test_igr, normalized = TRUE), 4) not equal to c(0.0967, 0.0517, 0.0876, 0.0498, 0.0107).
2/5 mismatches (average diff: 0.00055)
[1] 0.0972 - 0.0967 == 5e-04
[3] 0.0882 - 0.0876 == 6e-04
── Failure ('test-measure_centrality.R:63:3'): two mode betweenness centrality calculated correctly ──
top5(...) not equal to c(0.0967, 0.0517, 0.0876, 0.0498, 0.0107).
2/5 mismatches (average diff: 0.00055)
[1] 0.0972 - 0.0967 == 5e-04
[3] 0.0882 - 0.0876 == 6e-04
── Failure ('test-measure_centrality.R:64:3'): two mode betweenness centrality calculated correctly ──
bot5(node_betweenness(test_mat, normalized = TRUE), 4) not equal to c(0.0151, 0.02, 0.0226, 0.0042, 0.0042).
5/5 mismatches (average diff: 0.0025)
[1] 0.0114 - 0.0151 == -0.0037
[2] 0.0197 - 0.0200 == -0.0003
[3] 0.0181 - 0.0226 == -0.0045
[4] 0.0022 - 0.0042 == -0.0020
[5] 0.0022 - 0.0042 == -0.0020
── Failure ('test-measure_centrality.R:65:3'): two mode betweenness centrality calculated correctly ──
bot5(node_betweenness(test_igr, normalized = TRUE), 4) not equal to c(0.0151, 0.02, 0.0226, 0.0042, 0.0042).
5/5 mismatches (average diff: 0.0025)
[1] 0.0114 - 0.0151 == -0.0037
[2] 0.0197 - 0.0200 == -0.0003
[3] 0.0181 - 0.0226 == -0.0045
[4] 0.0022 - 0.0042 == -0.0020
[5] 0.0022 - 0.0042 == -0.0020
── Failure ('test-measure_centrality.R:66:3'): two mode betweenness centrality calculated correctly ──
bot5(...) not equal to c(0.0151, 0.02, 0.0226, 0.0042, 0.0042).
5/5 mismatches (average diff: 0.0025)
[1] 0.0114 - 0.0151 == -0.0037
[2] 0.0197 - 0.0200 == -0.0003
[3] 0.0181 - 0.0226 == -0.0045
[4] 0.0022 - 0.0042 == -0.0020
[5] 0.0022 - 0.0042 == -0.0020
── Failure ('test-measure_centrality.R:75:3'): two mode eigenvector centrality calculated correctly ──
top3(node_eigenvector(test_mat, normalized = FALSE)) not equal to c(0.2991, 0.2809, 0.3338).
3/3 mismatches (average diff: 0.0196)
[1] 0.319 - 0.299 == 0.0194
[2] 0.300 - 0.281 == 0.0195
[3] 0.354 - 0.334 == 0.0198
── Failure ('test-measure_centrality.R:76:3'): two mode eigenvector centrality calculated correctly ──
top3(node_eigenvector(test_igr, normalized = FALSE)) not equal to c(0.2991, 0.2809, 0.3338).
3/3 mismatches (average diff: 0.0196)
[1] 0.319 - 0.299 == 0.0194
[2] 0.300 - 0.281 == 0.0195
[3] 0.354 - 0.334 == 0.0198
── Failure ('test-measure_centrality.R:77:3'): two mode eigenvector centrality calculated correctly ──
bot3(node_eigenvector(test_mat, normalized = FALSE)) not equal to c(0.2551, 0.1774, 0.1774).
3/3 mismatches (average diff: 0.0437)
[1] 0.216 - 0.255 == -0.0395
[2] 0.132 - 0.177 == -0.0458
[3] 0.132 - 0.177 == -0.0458
── Failure ('test-measure_centrality.R:78:3'): two mode eigenvector centrality calculated correctly ──
bot3(node_eigenvector(test_igr, normalized = FALSE)) not equal to c(0.2551, 0.1774, 0.1774).
3/3 mismatches (average diff: 0.0437)
[1] 0.216 - 0.255 == -0.0395
[2] 0.132 - 0.177 == -0.0458
[3] 0.132 - 0.177 == -0.0458
── Failure ('test-measure_centrality.R:79:3'): two mode eigenvector centrality calculated correctly ──
top3(node_eigenvector(test_igr, normalized = TRUE)) not equal to c(0.423, 0.3973, 0.4721).
3/3 mismatches (average diff: 0.0276)
[1] 0.451 - 0.423 == 0.0275
[2] 0.425 - 0.397 == 0.0275
[3] 0.500 - 0.472 == 0.0279
── Failure ('test-measure_centrality.R:103:3'): two mode degree centralisation calculated correctly ──
as.numeric(network_degree(ison_southern_women, normalized = FALSE)) not equal to c(0.1813, 0.5097).
2/2 mismatches (average diff: 0.0182)
[1] 0.202 - 0.181 == 0.0208
[2] 0.525 - 0.510 == 0.0156
── Failure ('test-measure_centrality.R:104:3'): two mode degree centralisation calculated correctly ──
as.numeric(network_degree(ison_southern_women, direction = "in")) not equal to c(0.2308, 0.4661).
2/2 mismatches (average diff: 0.0181)
[1] 0.249 - 0.231 == 0.0181
[2] 0.484 - 0.466 == 0.0181
── Failure ('test-measure_centrality.R:105:3'): two mode degree centralisation calculated correctly ──
as.numeric(network_degree(ison_southern_women, normalized = TRUE)) not equal to c(0.2268, 0.4744).
2/2 mismatches (average diff: 0.0181)
[1] 0.245 - 0.227 == 0.0178
[2] 0.493 - 0.474 == 0.0184
── Failure ('test-measure_centrality.R:109:3'): two mode closeness centralisation calculated correctly ──
as.numeric(network_closeness(ison_southern_women, normalized = TRUE)) not equal to c(0.2843, 0.4418).
2/2 mismatches (average diff: 0.00975)
[1] 0.293 - 0.284 == 0.00899
[2] 0.452 - 0.442 == 0.01051
── Failure ('test-measure_centrality.R:110:3'): two mode closeness centralisation calculated correctly ──
as.numeric(network_closeness(ison_southern_women, direction = "in")) not equal to c(0.2135, 0.5285).
2/2 mismatches (average diff: 0.00959)
[1] 0.224 - 0.213 == 0.01046
[2] 0.537 - 0.528 == 0.00872
── Failure ('test-measure_centrality.R:114:3'): two mode betweenness centralisation calculated correctly ──
as.numeric(network_betweenness(ison_southern_women, normalized = FALSE)) not equal to c(0.058, 0.2073).
2/2 mismatches (average diff: 0.00967)
[1] 0.0733 - 0.058 == 0.01532
[2] 0.2113 - 0.207 == 0.00402
── Failure ('test-measure_centrality.R:115:3'): two mode betweenness centralisation calculated correctly ──
as.numeric(network_betweenness(ison_southern_women, direction = "in")) not equal to c(0.0668, 0.1982).
2/2 mismatches (average diff: 0.00956)
[1] 0.082 - 0.0668 == 0.01516
[2] 0.202 - 0.1982 == 0.00396
── Failure ('test-measure_centrality.R:116:3'): two mode betweenness centralisation calculated correctly ──
as.numeric(network_betweenness(ison_southern_women, normalized = TRUE)) not equal to c(0.0586, 0.207).
2/2 mismatches (average diff: 0.00979)
[1] 0.0739 - 0.0586 == 0.01525
[2] 0.2113 - 0.2070 == 0.00432
── Failure ('test-measure_closure.R:26:3'): two-mode object clustering is reported correctly ──
as.numeric(network_equivalency(ison_southern_women)) not equal to 0.4872.
1/1 mismatches
[1] 0.468 - 0.487 == -0.0194
── Failure ('test-measure_features.R:5:3'): small-world metrics for two mode networks are calculated and displayed correctly ──
as.numeric(network_smallworld(ison_southern_women)) not equal to -1.04.
1/1 mismatches
[1] -0.944 - -1.04 == 0.0959
── Error ('test-measure_features.R:23:3'): network_core works ──────────────────
Error in `manynet::create_core(.data, membership = membership)`: unused argument (membership = membership)
Backtrace:
▆
1. ├─testthat::expect_s3_class(network_core(ison_adolescents), "network_measure") at test-measure_features.R:23:3
2. │ └─testthat::quasi_label(enquo(object), arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─migraph::network_core(ison_adolescents)
5. ├─stats::cor(...)
6. │ └─base::is.data.frame(y)
7. └─manynet::as_matrix(manynet::create_core(.data, membership = membership))
── Failure ('test-measure_holes.R:4:3'): redundancy is reported correctly ──────
length(node_redundancy(ison_brandes)) not equal to network_nodes(ison_brandes).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-measure_holes.R:5:3'): redundancy is reported correctly ──────
length(node_redundancy(mpn_elite_usa_advice)) not equal to network_nodes(mpn_elite_usa_advice).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-measure_holes.R:13:3'): effective size is calculated and reported correctly ──
length(node_effsize(ison_brandes)) not equal to network_nodes(ison_brandes).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-measure_holes.R:14:3'): effective size is calculated and reported correctly ──
length(node_effsize(mpn_elite_usa_advice)) not equal to network_nodes(mpn_elite_usa_advice).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-measure_holes.R:23:3'): efficiency is reported correctly ─────
length(node_efficiency(ison_brandes)) not equal to network_nodes(ison_brandes).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-measure_holes.R:24:3'): efficiency is reported correctly ─────
length(node_efficiency(mpn_elite_usa_advice)) not equal to network_nodes(mpn_elite_usa_advice).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-measure_holes.R:29:3'): constraint scores are reported correctly for two-mode notworks ──
round(unname(node_constraint(ison_southern_women)[1:3]), 2) not equal to c(0.28, 0.31, 0.29).
1/3 mismatches
[3] 0.3 - 0.29 == 0.01
── Failure ('test-measure_holes.R:42:3'): hierarchy is reported correctly ──────
length(node_hierarchy(ison_brandes)) not equal to network_nodes(ison_brandes).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-measure_holes.R:43:3'): hierarchy is reported correctly ──────
length(node_hierarchy(mpn_elite_usa_advice)) not equal to network_nodes(mpn_elite_usa_advice).
Classes differ: 'integer' is not 'network_measure'/'numeric'
── Failure ('test-member_equivalence.R:14:3'): equivalence clustering works ────
network_nodes(ison_adolescents) not equal to length(...).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-member_equivalence.R:15:3'): equivalence clustering works ────
network_nodes(ison_adolescents) not equal to length(node_structural_equivalence(ison_adolescents, k = 3, "hier")).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-member_equivalence.R:16:3'): equivalence clustering works ────
network_nodes(ison_adolescents) not equal to length(...).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-member_equivalence.R:17:3'): equivalence clustering works ────
network_nodes(mpn_elite_mex) not equal to length(node_regular_equivalence(mpn_elite_mex, cluster = "concor")).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-member_equivalence.R:18:3'): equivalence clustering works ────
network_nodes(mpn_elite_mex) not equal to length(node_regular_equivalence(mpn_elite_mex, "elbow")).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-member_equivalence.R:19:3'): equivalence clustering works ────
network_nodes(mpn_elite_mex) not equal to length(node_regular_equivalence(mpn_elite_mex, "strict")).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-member_equivalence.R:20:3'): equivalence clustering works ────
network_nodes(mpn_elite_usa_advice) not equal to length(...).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-member_equivalence.R:21:3'): equivalence clustering works ────
network_nodes(mpn_elite_usa_advice) not equal to length(node_automorphic_equivalence(mpn_elite_usa_advice, distance = "maximum")).
Classes differ: 'network_measure'/'numeric' is not 'integer'
── Failure ('test-model_tests.R:29:3'): test_random works ──────────────────────
mean(cugtest3$testdist) not equal to 0.361.
1/1 mismatches
[1] 0.341 - 0.361 == -0.0203
── Error ('test-motif_census.R:38:1'): (code run outside of `test_that()`) ─────
Error in `as.edge_list(graph)`: not coercable to edge list only data frames with 2 columns supported
Backtrace:
▆
1. └─migraph::node_quad_census(manynet::ison_southern_women) at test-motif_census.R:38:1
2. └─oaqc::oaqc(graph)
3. └─oaqc:::as.edge_list(graph)
[ FAIL 59 | WARN 2065 | SKIP 0 | PASS 189 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 1.3.4
Check: Rd cross-references
Result: NOTE
Found the following Rd file(s) with Rd \link{} targets missing package
anchors:
between_centrality.Rd: to_undirected
close_centrality.Rd: to_undirected
degree_centrality.Rd: to_undirected, to_unweighted
eigenv_centrality.Rd: to_undirected
Please provide package anchors for all Rd \link{} targets not in the
package itself and the base packages.
Flavor: r-devel-windows-x86_64