* using log directory 'd:/Rcompile/CRANpkg/local/4.5/netrics.Rcheck' * using R version 4.5.3 (2026-03-11 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'netrics/DESCRIPTION' ... OK * this is package 'netrics' version '0.4.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'netrics' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] OK * checking whether startup messages can be suppressed ... [2s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [18s] OK * checking Rd files ... [4s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... [9s] ERROR Running examples in 'netrics-Ex.R' failed The error most likely occurred in: > ### Name: measure_breadth > ### Title: Measures of network breadth > ### Aliases: measure_breadth net_by_diameter net_by_length > > ### ** Examples > > net_by_diameter(fict_marvel) Error in igraph::diameter(object, directed = manynet::is_directed(object)) : Weight vector must be non-negative, got -1. Invalid value Source: paths/shortest_paths.c:1202 Calls: net_by_diameter -> make_network_measure -> Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [140s] ERROR Running 'testthat.R' [140s] 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. > test-tutorials_netrics.R: [1] 0.48378 Saving _problems/test-tutorials_netrics-5.R > test-member_community.R: i Considering each of `node_in_infomap()`, `node_in_spinglass()`, `node_in_fluid()`, `node_in_louvain()`, `node_in_leiden()`, `node_in_greedy()`, `node_in_eigen()`, and `node_in_walktrap()`. > test-member_community.R: ========>---------------------- 25% | ETA: 3m > test-member_community.R: v `node_in_eigen()` returns the highest modularity (0.857). > test-member_community.R: ========>---------------------- 25% | ETA: 3m [ FAIL 1 | WARN 31 | SKIP 40 | PASS 1805 ] ══ Skipped tests (40) ══════════════════════════════════════════════════════════ • On CRAN (3): 'test-mark_nodes.R:106:3', 'test-mark_ties.R:62:3', 'test-mark_ties.R:71: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("equivalency", fn) && ob == "labelled" is TRUE (1): 'test-measure_nodes.R:13:7' • grepl("exposure|mixed|hazard", fn) is TRUE (12): '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', '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("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("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-tutorials_netrics.R:4:5'): netrics tutorial code runs without warnings or errors ── Expected `w` to be NULL. Differences: `actual` is an S3 object of class , a list `expected` is NULL Warning in expression 45 : (bm <- to_blocks(alge, node_in_structural(alge))) Backtrace: ▆ 1. ├─testthat::expect_null(...) at test-tutorials_netrics.R:4:5 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─netrics:::check_tute_functions(tute) 5. └─testthat::expect_null(...) at ./helper-netrics.R:190:5 [ FAIL 1 | WARN 31 | SKIP 40 | PASS 1805 ] Error: ! Test failures. Execution halted * checking PDF version of manual ... [29s] OK * checking HTML version of manual ... [18s] OK * DONE Status: 2 ERRORs