Skip to content

Verify Compatibility with network 1.19.0 #10

@CarterButts

Description

@CarterButts

Hi, folks. I'm about to push network 1.19.0 (see the current github for the latest version), and revdep check suggests that there could be an issue with networkLite. The issues seem to arise in test-all.R, calling test-networkLite.R. It looks to be arising from the tibble-based methods. The output is such:

R version 4.4.2 (2024-10-31) -- "Pile of Leaves"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(testthat)
> test_check("networkLite")
Loading required package: networkLite
Loading required package: network

'network' 1.19.0 (2024-12-04), part of the Statnet Project
* 'news(package="network")' for changes since last version
* 'citation("network")' for citation information
* 'https://statnet.org' for help, support, and other information

[ FAIL 12 | WARN 7 | SKIP 0 | PASS 3034 ]

══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-networkLite.R:683:11'): network and networkLite produce identical matrices, edgelists, and tibbles ──
`tbl` not identical to tibble::as_tibble(nwL, attrname = attrname, na.rm = na.rm).
Attributes: < Names: 4 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component 1: Modes: logical, character >
Attributes: < Component 1: Lengths: 1, 3 >
Attributes: < Component 1: target is logical, current is character >
Attributes: < Component 2: Modes: character, numeric >
Attributes: < Component 2: Lengths: 3, 1 >
Attributes: < Component 2: target is character, current is numeric >
Attributes: < Component 3: Numeric: lengths (1, 94) differ >
...
── Failure ('test-networkLite.R:683:11'): network and networkLite produce identical matrices, edgelists, and tibbles ──
`tbl` not identical to tibble::as_tibble(nwL, attrname = attrname, na.rm = na.rm).
Attributes: < Names: 4 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component 1: Modes: logical, character >
Attributes: < Component 1: Lengths: 1, 3 >
Attributes: < Component 1: target is logical, current is character >
Attributes: < Component 2: Modes: character, numeric >
Attributes: < Component 2: Lengths: 3, 1 >
Attributes: < Component 2: target is character, current is numeric >
Attributes: < Component 3: Numeric: lengths (1, 43) differ >
...
── Failure ('test-networkLite.R:683:11'): network and networkLite produce identical matrices, edgelists, and tibbles ──
`tbl` not identical to tibble::as_tibble(nwL, attrname = attrname, na.rm = na.rm).
Attributes: < Names: 4 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component 1: Modes: logical, character >
Attributes: < Component 1: Lengths: 1, 3 >
Attributes: < Component 1: target is logical, current is character >
Attributes: < Component 2: Modes: character, numeric >
Attributes: < Component 2: Lengths: 3, 1 >
Attributes: < Component 2: target is character, current is numeric >
Attributes: < Component 3: Numeric: lengths (1, 94) differ >
...
── Failure ('test-networkLite.R:683:11'): network and networkLite produce identical matrices, edgelists, and tibbles ──
`tbl` not identical to tibble::as_tibble(nwL, attrname = attrname, na.rm = na.rm).
Attributes: < Names: 4 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component 1: Modes: logical, character >
Attributes: < Component 1: Lengths: 1, 3 >
Attributes: < Component 1: target is logical, current is character >
Attributes: < Component 2: Modes: character, numeric >
Attributes: < Component 2: Lengths: 3, 1 >
Attributes: < Component 2: target is character, current is numeric >
Attributes: < Component 3: Numeric: lengths (1, 43) differ >
...
── Failure ('test-networkLite.R:683:11'): network and networkLite produce identical matrices, edgelists, and tibbles ──
`tbl` not identical to tibble::as_tibble(nwL, attrname = attrname, na.rm = na.rm).
Attributes: < Names: 4 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component 1: Modes: logical, character >
Attributes: < Component 1: Lengths: 1, 3 >
Attributes: < Component 1: target is logical, current is character >
Attributes: < Component 2: Modes: character, numeric >
Attributes: < Component 2: Lengths: 3, 1 >
Attributes: < Component 2: target is character, current is numeric >
Attributes: < Component 3: Numeric: lengths (1, 94) differ >
...
── Failure ('test-networkLite.R:683:11'): network and networkLite produce identical matrices, edgelists, and tibbles ──
`tbl` not identical to tibble::as_tibble(nwL, attrname = attrname, na.rm = na.rm).
Attributes: < Names: 4 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component 1: Modes: logical, character >
Attributes: < Component 1: Lengths: 1, 3 >
Attributes: < Component 1: target is logical, current is character >
Attributes: < Component 2: Modes: character, numeric >
Attributes: < Component 2: Lengths: 3, 1 >
Attributes: < Component 2: target is character, current is numeric >
Attributes: < Component 3: Numeric: lengths (1, 43) differ >
...
── Failure ('test-networkLite.R:683:11'): network and networkLite produce identical matrices, edgelists, and tibbles ──
`tbl` not identical to tibble::as_tibble(nwL, attrname = attrname, na.rm = na.rm).
Attributes: < Names: 4 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component 1: Modes: logical, character >
Attributes: < Component 1: Lengths: 1, 3 >
Attributes: < Component 1: target is logical, current is character >
Attributes: < Component 2: Modes: character, numeric >
Attributes: < Component 2: Lengths: 3, 1 >
Attributes: < Component 2: target is character, current is numeric >
Attributes: < Component 3: Numeric: lengths (1, 98) differ >
...
── Failure ('test-networkLite.R:683:11'): network and networkLite produce identical matrices, edgelists, and tibbles ──
`tbl` not identical to tibble::as_tibble(nwL, attrname = attrname, na.rm = na.rm).
Attributes: < Names: 4 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component 1: Modes: logical, character >
Attributes: < Component 1: Lengths: 1, 3 >
Attributes: < Component 1: target is logical, current is character >
Attributes: < Component 2: Modes: character, numeric >
Attributes: < Component 2: Lengths: 3, 1 >
Attributes: < Component 2: target is character, current is numeric >
Attributes: < Component 3: Numeric: lengths (1, 41) differ >
...
── Failure ('test-networkLite.R:683:11'): network and networkLite produce identical matrices, edgelists, and tibbles ──
`tbl` not identical to tibble::as_tibble(nwL, attrname = attrname, na.rm = na.rm).
Attributes: < Names: 4 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component 1: Modes: logical, character >
Attributes: < Component 1: Lengths: 1, 3 >
Attributes: < Component 1: target is logical, current is character >
Attributes: < Component 2: Modes: character, numeric >
Attributes: < Component 2: Lengths: 3, 1 >
Attributes: < Component 2: target is character, current is numeric >
Attributes: < Component 3: Numeric: lengths (1, 98) differ >
...
── Failure ('test-networkLite.R:683:11'): network and networkLite produce identical matrices, edgelists, and tibbles ──
`tbl` not identical to tibble::as_tibble(nwL, attrname = attrname, na.rm = na.rm).
Attributes: < Names: 4 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component 1: Modes: logical, character >
Attributes: < Component 1: Lengths: 1, 3 >
Attributes: < Component 1: target is logical, current is character >
Attributes: < Component 2: Modes: character, numeric >
Attributes: < Component 2: Lengths: 3, 1 >
Attributes: < Component 2: target is character, current is numeric >
Attributes: < Component 3: Numeric: lengths (1, 41) differ >
...
── Failure ('test-networkLite.R:683:11'): network and networkLite produce identical matrices, edgelists, and tibbles ──
`tbl` not identical to tibble::as_tibble(nwL, attrname = attrname, na.rm = na.rm).
Attributes: < Names: 4 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component 1: Modes: logical, character >
Attributes: < Component 1: Lengths: 1, 3 >
Attributes: < Component 1: target is logical, current is character >
Attributes: < Component 2: Modes: character, numeric >
Attributes: < Component 2: Lengths: 3, 1 >
Attributes: < Component 2: target is character, current is numeric >
Attributes: < Component 3: Numeric: lengths (1, 98) differ >
...
── Failure ('test-networkLite.R:683:11'): network and networkLite produce identical matrices, edgelists, and tibbles ──
`tbl` not identical to tibble::as_tibble(nwL, attrname = attrname, na.rm = na.rm).
Attributes: < Names: 4 string mismatches >
Attributes: < Length mismatch: comparison on first 4 components >
Attributes: < Component 1: Modes: logical, character >
Attributes: < Component 1: Lengths: 1, 3 >
Attributes: < Component 1: target is logical, current is character >
Attributes: < Component 2: Modes: character, numeric >
Attributes: < Component 2: Lengths: 3, 1 >
Attributes: < Component 2: target is character, current is numeric >
Attributes: < Component 3: Numeric: lengths (1, 41) differ >
...

[ FAIL 12 | WARN 7 | SKIP 0 | PASS 3034 ]
Error: Test failures
Execution halted

We need to push network in the next three days, so it would be great if you could check this - don't want to cause issues when we push! Thanks!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions