CRAN Package Check Results for Package netrics

Last updated on 2026-11-16 05:52:46 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.1.0 13.31 584.72 598.03 OK
r-devel-linux-x86_64-debian-gcc 1.1.0 9.98 377.52 387.50 OK
r-devel-linux-x86_64-fedora-clang 1.1.0 12.00 428.41 440.41 ERROR
r-devel-linux-x86_64-fedora-gcc 1.1.0 10.00 373.47 383.47 OK
r-devel-windows-x86_64 1.1.0 18.00 489.00 507.00 OK
r-patched-linux-x86_64 1.1.0 22.20 575.14 597.34 OK
r-release-linux-x86_64 1.1.0 12.82 558.97 571.79 OK
r-release-macos-arm64 1.1.0 4.00 78.00 82.00 OK
r-release-macos-x86_64 1.1.0 11.00 350.00 361.00 OK
r-release-windows-x86_64 1.1.0 20.00 494.00 514.00 OK
r-oldrel-macos-arm64 1.1.0 OK
r-oldrel-macos-x86_64 1.1.0 11.00 350.00 361.00 OK
r-oldrel-windows-x86_64 1.1.0 24.00 611.00 635.00 OK

Check Details

Version: 1.1.0
Check: examples
Result: ERROR Running examples in ‘netrics-Ex.R’ failed The error most likely occurred in: > ### Name: measure_diffusion_net > ### Title: Measures of network diffusion > ### Aliases: measure_diffusion_net net_by_transmissibility net_by_recovery > ### net_by_reproduction net_by_immunity > > ### ** Examples > > smeg <- generate_smallworld(15, 0.025) > smeg_diff <- play_diffusion(smeg, recovery = 0.2) > plot(smeg_diff) Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' is a list, but does not have components 'x' and 'y' Calls: plot -> plot.default -> xy.coords Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.1.0
Check: tests
Result: ERROR Running ‘testthat.R’ [338s/354s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(netrics) Loading required package: manynet > > test_check("netrics") Starting 2 test processes. Saving _problems/test-mark_nodes-87.R > test-measure_fit.R: i Calculating coreness using `coreness_correlation()`. > test-measure_fit.R: i Calculating coreness using `coreness_rich()`. Saving _problems/test-measure_fit-9.R Saving _problems/test-measure_fit-10.R Saving _problems/test-measure_heterogeneity-74.R Saving _problems/test-measure_heterogeneity-83.R Saving _problems/test-measure_heterogeneity-91.R Saving _problems/test-measure_heterogeneity-103.R Saving _problems/test-measure_heterogeneity-117.R Saving _problems/test-measure_heterogeneity-127.R > test-measure_registry_contract.R: Measure contract gaps (6): > test-measure_registry_contract.R: tie_by_eigenvector: `normalized` has no effect on the result > test-measure_registry_contract.R: mode_by_indegree: `normalized` has no effect on the result > test-measure_registry_contract.R: mode_by_outdegree: `normalized` has no effect on the result > test-measure_registry_contract.R: mode_by_closeness: `normalized` has no effect on the result > test-measure_registry_contract.R: node_by_stress: ignores tie weights > test-measure_registry_contract.R: node_by_information: ignores tie weights Saving _problems/test-member_ties-36.R Saving _problems/test-motif_composition-15.R Saving _problems/test-shapes-141.R Saving _problems/test-shapes-141.R [ FAIL 13 | WARN 0 | SKIP 39 | PASS 4930 ] ══ Skipped tests (39) ══════════════════════════════════════════════════════════ • On CRAN (5): 'test-tutorials_netrics.R:5:3', 'test-mark_nodes.R:106:3', 'test-mark_ties.R:64:3', 'test-mark_ties.R:73:3', 'test-motif_nodes.R:119:3' • fn == "node_is_core" && manynet::is_directed(data_objs[[ob]]) is TRUE (1): 'test-mark_nodes.R:11:9' • grepl("core|spatial", fn) is TRUE (12): 'test-measure_net.R:5:7', 'test-measure_net.R:5:7', 'test-measure_net.R:5:7', 'test-measure_net.R:5:7', 'test-measure_net.R:5:7', 'test-measure_net.R:5:7', 'test-measure_net.R:5:7', 'test-measure_net.R:5:7', 'test-measure_net.R:5:7', 'test-measure_net.R:5:7', 'test-measure_net.R:5:7', 'test-measure_net.R:5:7' • grepl("exposure|mixed|hazard", fn) is TRUE (6): 'test-motif_net.R:5:7', 'test-motif_net.R:5:7', 'test-motif_net.R:5:7', 'test-motif_net.R:5:7', 'test-motif_net.R:5:7', 'test-motif_net.R:5:7' • grepl("fluid", fn) && !igraph::is_connected(manynet::as_igraph(manynet::to_positive(data_objs[[ob]]))) is TRUE (2): 'test-member_nodes.R:12:7', 'test-member_nodes.R:12:7' • grepl("homophily", fn) && is_twomode(data_objs[[ob]]) is TRUE (1): 'test-motif_net.R:8:7' • grepl("multideg", fn) is TRUE (6): 'test-measure_nodes.R:12:7', 'test-measure_nodes.R:12:7', 'test-measure_nodes.R:12:7', 'test-measure_nodes.R:12:7', 'test-measure_nodes.R:12:7', 'test-measure_nodes.R:12:7' • grepl("net_by_factions", fn) && ob == "twomode" is TRUE (1): 'test-measure_net.R:6:7' • grepl("spinglass", fn) && !igraph::is_connected(manynet::as_igraph(data_objs[[ob]])) is TRUE (1): 'test-member_nodes.R:8:7' • grepl("tie_is_imbalanced", fn) && ob == "twomode" is TRUE (1): 'test-mark_ties.R:5:7' • grepl("triad", fn) && is_twomode(data_objs[[ob]]) is TRUE (1): 'test-motif_net.R:6:7' • grepl("triad|dyad", fn) && is_twomode(data_objs[[ob]]) is TRUE (2): 'test-motif_nodes.R:5:7', 'test-motif_nodes.R:5:7' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-mark_nodes.R:86:3'): additional node mark functions work ───── node_is_recovered(play_diffusion(create_tree(12), recovery = 0.3), has values TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, not values TRUE, TRUE, TRUE, FALSE, FALSE, FALSE. time = 3) has values TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, not values TRUE, TRUE, TRUE, FALSE, FALSE, FALSE. ── Failure ('test-measure_fit.R:9:3'): net_core works ────────────────────────── out has values 0.323000, not values -0.133000. ── Failure ('test-measure_fit.R:10:3'): net_core works ───────────────────────── net_by_core(ison_adolescents, variant = "ident") has values 4.899000, not values 6.481000. ── Error ('test-measure_heterogeneity.R:74:3'): net_by_spatial() drops nodes with a missing attribute ── Error in `ensure_igraph(graph)`: Must provide a graph object (provided wrong object type). Backtrace: ▆ 1. └─igraph::set_vertex_attr(create_ring(8), "v", value = c(1:7, NA)) at test-measure_heterogeneity.R:74:3 2. ├─igraph:::is_complete_iterator(index) 3. └─igraph::V(graph) 4. └─igraph:::ensure_igraph(graph) 5. └─cli::cli_abort("Must provide a graph object (provided wrong object type).") 6. └─rlang::abort(...) ── Error ('test-measure_heterogeneity.R:83:3'): net_by_spatial() returns NA where the attribute has no variance ── Error in `ensure_igraph(graph)`: Must provide a graph object (provided wrong object type). Backtrace: ▆ 1. └─igraph::set_vertex_attr(create_ring(6), "v", value = rep(3, 6)) at test-measure_heterogeneity.R:83:3 2. ├─igraph:::is_complete_iterator(index) 3. └─igraph::V(graph) 4. └─igraph:::ensure_igraph(graph) 5. └─cli::cli_abort("Must provide a graph object (provided wrong object type).") 6. └─rlang::abort(...) ── Error ('test-measure_heterogeneity.R:91:3'): node_by_homophily() reports Geary's C, and reads a name and a vector alike ── Error in `ensure_igraph(graph)`: Must provide a graph object (provided wrong object type). Backtrace: ▆ 1. └─igraph::set_vertex_attr(ring, "v", value = x) at test-measure_heterogeneity.R:91:3 2. ├─igraph:::is_complete_iterator(index) 3. └─igraph::V(graph) 4. └─igraph:::ensure_igraph(graph) 5. └─cli::cli_abort("Must provide a graph object (provided wrong object type).") 6. └─rlang::abort(...) ── Error ('test-measure_heterogeneity.R:103:3'): Geary's C reads tie weights, and declares its range accordingly ── Error in `ensure_igraph(graph)`: Must provide a graph object (provided wrong object type). Backtrace: ▆ 1. └─igraph::E(`*tmp*`) at test-measure_heterogeneity.R:103:3 2. └─igraph:::ensure_igraph(graph) 3. └─cli::cli_abort("Must provide a graph object (provided wrong object type).") 4. └─rlang::abort(...) ── Error ('test-measure_heterogeneity.R:116:3'): net_by_diversity() substitutes Blau's index for a factor attribute ── Error in `ensure_igraph(graph)`: Must provide a graph object (provided wrong object type). Backtrace: ▆ 1. └─igraph::set_vertex_attr(...) at test-measure_heterogeneity.R:116:3 2. ├─igraph:::is_complete_iterator(index) 3. └─igraph::V(graph) 4. └─igraph:::ensure_igraph(graph) 5. └─cli::cli_abort("Must provide a graph object (provided wrong object type).") 6. └─rlang::abort(...) ── Error ('test-measure_heterogeneity.R:126:3'): net_by_diversity() measures within the groups of a membership ── Error in `ensure_igraph(graph)`: Must provide a graph object (provided wrong object type). Backtrace: ▆ 1. └─igraph::set_vertex_attr(...) at test-measure_heterogeneity.R:126:3 2. ├─igraph:::is_complete_iterator(index) 3. └─igraph::V(graph) 4. └─igraph:::ensure_igraph(graph) 5. └─cli::cli_abort("Must provide a graph object (provided wrong object type).") 6. └─rlang::abort(...) ── Error ('test-member_ties.R:35:3'): tie_in_community keeps a place for every tie ── Error in `as_igraph_es(graph, eids)`: Cannot use an edge sequence from another graph. Backtrace: ▆ 1. └─igraph::ends(...) at test-member_ties.R:35:3 2. └─igraph:::edges_impl(graph = graph, eids = es) 3. └─igraph:::as_igraph_es(graph, eids) 4. └─cli::cli_abort("Cannot use an edge sequence from another graph.") 5. └─rlang::abort(...) ── Failure ('test-motif_composition.R:15:3'): node_x_ties branches on network type ── Expected `ncol(ms)` to equal `length(unique(tie_attribute(ison_algebra, "type"))) + 1`. Differences: `actual`: 4.0 `expected`: 1.0 ── Failure ('test-shapes.R:140:5'): marks, memberships, and motifs read the hightech CSS as its aggregated structure ── Expected node_x_exposure runs on a cognitive social structure to be FALSE. Differences: `actual`: TRUE `expected`: FALSE ── Failure ('test-shapes.R:140:5'): marks, memberships, and motifs read the sparse CSS as its aggregated structure ── Expected node_x_exposure runs on a cognitive social structure to be FALSE. Differences: `actual`: TRUE `expected`: FALSE [ FAIL 13 | WARN 0 | SKIP 39 | PASS 4930 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang