- using R Under development (unstable) (2026-08-27 r90452 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
* current time: 2026-08-29 18:12:05 UTC
- 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
See the install log for details.
- 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 ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] OK
- checking whether startup messages can be suppressed ... [1s] 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 ... [15s] OK
- checking Rd files ... [3s] 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 ... [7s] 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 -> <Anonymous>
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [63s] ERROR
Running 'testthat.R' [62s]
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
[ FAIL 1 | WARN 31 | SKIP 41 | PASS 1803 ]
══ Skipped tests (41) ══════════════════════════════════════════════════════════
• 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'
• format(Sys.time(), "%H") >= "09" is TRUE (1): 'test-member_community.R:27:3'
• 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 <deprecatedWarning/warning/condition>, 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 41 | PASS 1803 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [29s] OK
- checking HTML version of manual ... [11s] OK
- DONE
Status: 2 ERRORs