Running ‘testthat.R’ [13s/12s]
[13s/12s] ERROR
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # File tests/testthat.R in package ergm.multi, part of the
> # Statnet suite of packages for network analysis, https://statnet.org .
> #
> # This software is distributed under the GPL-3 license. It is free,
> # open source, and has the attribution requirements (GPL Section 7) at
> # https://statnet.org/attribution .
> #
> # Copyright 2003-2022 Statnet Commons
> ################################################################################
> library(testthat)
> library(ergm.multi)
Loading required package: ergm
Loading required package: network
'network' 1.17.2 (2022-05-20), 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
'ergm' 4.2.2 (2022-06-01), part of the Statnet Project
* 'news(package="ergm")' for changes since last version
* 'citation("ergm")' for citation information
* 'https://statnet.org' for help, support, and other information
'ergm' 4 is a major update that introduces some backwards-incompatible
changes. Please type 'news(package="ergm")' for a list of major
changes.
'ergm.multi' 0.1.0 (2022-07-03), part of the Statnet Project
* 'news(package="ergm.multi")' for changes since last version
* 'citation("ergm.multi")' for citation information
* 'https://statnet.org' for help, support, and other information
Attaching package: 'ergm.multi'
The following object is masked from 'package:ergm':
snctrl
>
> test_check("ergm.multi")
Starting 2 test processes
[ FAIL 1 | WARN 1 | SKIP 0 | PASS 36 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure (test-multinet.R:70:5): N() estimation with an LM and noncompacted stats ──
coef(glmfit) (`actual`) not equal to coef(ergmfit) (`expected`).
`actual`: -1.402878751 0.061211146 -0.218938682 -0.109046768
`expected`: -1.402878743 0.061211143 -0.218938602 -0.109046781
[ FAIL 1 | WARN 1 | SKIP 0 | PASS 36 ]
Error: Test failures
Execution halted
* checking for unstated dependencies in vignettes ... OK
It does not show up on R Mac Builder, so it may be stochastic.
Looks like it's a floating-point rounding error:
It does not show up on R Mac Builder, so it may be stochastic.