Running ‘constrain_degrees_edges.R’ [2s/3s]
  Running ‘constrain_dind.R’ [2s/3s]
  Running ‘constraint_conflict.R’ [2s/3s]
  Running ‘constraint_generalized.R’ [0s/1s]
  Running ‘drop_tests.R’ [0s/1s]
  Running ‘ergmMPLEtest.R’ [2s/4s]
  Running ‘ergm_term_doc_test.R’ [5s/8s]
  Running ‘fix.curved.R’ [2s/3s]
  Running ‘gw_sp_tests.R’ [3s/4s]
  Running ‘hamming_termtests.R’ [2s/3s]
  Running ‘miss_tests.CD.R’ [0s/1s]
  Running ‘miss_tests.R’ [0s/1s]
  Running ‘mle_offset.R’ [0s/1s]
  Running ‘mple_largenetwork.R’ [0s/1s]
  Running ‘mple_offset.R’ [0s/1s]
  Running ‘nodemix.R’ [2s/3s]
  Running ‘nodrop.R’ [0s/1s]
  Running ‘parallel.R’ [0s/1s]
  Running ‘requireNamespaceTest.R’ [2s/3s]
  Running ‘runtime_diags.R’ [0s/1s]
  Running ‘scoping.R’ [0s/1s]
  Running ‘simpletests.R’ [0s/1s]
  Running ‘steppingtest.R’ [0s/1s]
  Running ‘stocapprox.R’ [0s/1s]
  Running ‘target_offset.R’ [12s/18s]
  Running ‘termTests.b12nodematch.R’ [2s/3s]
  Running ‘termTests.bipartite.R’ [2s/3s]
  Running ‘termTests.directed.R’ [5s/7s]
  Running ‘termTests.flexible.R’ [2s/3s]
  Running ‘termTests.undirected.R’ [2s/3s]
  Running ‘termTests.valued.R’ [2s/3s]
  Running ‘testgflomiss.R’ [0s/1s]
  Running ‘testgmonkmiss.R’ [0s/1s]
  Running ‘testthat.R’ [20s/31s]
  Running ‘utils_tests.R’ [2s/4s]
  Running ‘valued_sim.R’ [6s/8s]
Running the tests in ‘tests/constrain_degrees_edges.R’ failed.
Complete output:
  > #  File tests/constrain_degrees_edges.R in package ergm, 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-2020 Statnet Commons
  > #######################################################################
  > 
  > # Also, while we are at it, test the options setting in .onLoad().
  > options(ergm.eval.loglik=FALSE) # .onLoad() should not clobber this.
  > 
  > library(ergm)
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.1 created on 2020-10-06.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  
  ergm: version 3.11.0, created on 2020-10-14
  Copyright (c) 2020, Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Carter T. Butts, University of California -- Irvine
                      Steven M. Goodreau, University of Washington
                      Pavel N. Krivitsky, UNSW Sydney
                      Martina Morris, University of Washington
                      with contributions from
                      Li Wang
                      Kirk Li, University of Washington
                      Skye Bender-deMoll, University of Washington
                      Chad Klumb
                      Michał Bojanowski, Kozminski University
                      Ben Bolker
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("ergm").
  
  NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
  constraint which distorted the sampled distribution somewhat. In
  addition, Sampson's Monks datasets had mislabeled vertices. See the
  NEWS and the documentation for more details.
  
  NOTE: Some common term arguments pertaining to vertex attribute and
  level selection have changed in 3.10.0. See terms help for more
  details. Use 'options(ergm.term=list(version="3.9.4"))' to use old
  behavior.
  
  > 
  > # Check that options are either set to default or preserved.
  > stopifnot(getOption("ergm.eval.loglik")==FALSE)
  > stopifnot(getOption("ergm.loglik.warn_dyads")==TRUE)
  > 
  > nsim <- 100
  > n <- 50
  > m <- 10
  > d <- 0.1
  > 
  > od <- function(nw) apply(as.matrix(nw, matrix.type="adjacency"), 1, sum)
  > id <- function(nw) apply(as.matrix(nw, matrix.type="adjacency"), 2, sum)
  > e <- function(nw) network.edgecount(nw)
  > 
  > ###### Directed
  > y0 <- as.network(n, density=d, directed=TRUE)
  Error in set.vertex.attribute(g, "na", rep(FALSE, n), 1:n) : 
    attempt to set index 0/0 in SET_VECTOR_ELT
  Calls: as.network ... as.network.matrix -> network.initialize -> set.vertex.attribute
  Execution halted
Running the tests in ‘tests/constrain_dind.R’ failed.
Complete output:
  > #  File tests/constrain_dind.R in package ergm, 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-2020 Statnet Commons
  > #######################################################################
  > 
  > library(ergm)
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.1 created on 2020-10-06.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  
  ergm: version 3.11.0, created on 2020-10-14
  Copyright (c) 2020, Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Carter T. Butts, University of California -- Irvine
                      Steven M. Goodreau, University of Washington
                      Pavel N. Krivitsky, UNSW Sydney
                      Martina Morris, University of Washington
                      with contributions from
                      Li Wang
                      Kirk Li, University of Washington
                      Skye Bender-deMoll, University of Washington
                      Chad Klumb
                      Michał Bojanowski, Kozminski University
                      Ben Bolker
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("ergm").
  
  NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
  constraint which distorted the sampled distribution somewhat. In
  addition, Sampson's Monks datasets had mislabeled vertices. See the
  NEWS and the documentation for more details.
  
  NOTE: Some common term arguments pertaining to vertex attribute and
  level selection have changed in 3.10.0. See terms help for more
  details. Use 'options(ergm.term=list(version="3.9.4"))' to use old
  behavior.
  
  > 
  > library(statnet.common)
  
  Attaching package: 'statnet.common'
  
  The following object is masked from 'package:base':
  
      order
  
  > 
  > mean_mat <- function(Mmin, Mmax){
  +   Mmin <- NVL(Mmin, Mmax)
  +   Mmax <- NVL(Mmax, Mmin)
  +   matrix(ifelse(rbinom(length(Mmin), 1, .5), Mmin, Mmax), nrow(Mmin), ncol(Mmin))
  + }
  > 
  > test_dind_constr <- function(y0, con, Mmin=NULL, Mmax=NULL, response=NULL, ...){
  +   nn <- network.dyadcount(y0, FALSE)
  +   if(!is.null(Mmin)){
  +     ymin <- simulate(NVL2(response, y0~sum, y0~edges), coef=-100, constraints=con, control=control.simulate.formula(MCMC.burnin=nn*100), response=response, ...)
  +     stopifnot(all(na.omit(c(suppressWarnings(as.matrix(ymin, attrname=response))==Mmin))))
  +   }
  +   if(!is.null(Mmax)){
  +     ymax <- simulate(NVL2(response, y0~sum, y0~edges), coef=+100, constraints=con, control=control.simulate.formula(MCMC.burnin=nn*100), response=response, ...)
  +     stopifnot(all(na.omit(c(as.matrix(ymax, attrname=response)==Mmax))))
  +   }
  + }
  > 
  > n <- 10
  > m <- 7
  > 
  > ###### Unconstrained ######
  > 
  > Mmin <- matrix(0,n,n)
  > Mmax <- matrix(1,n,n)
  > diag(Mmax)<-0
  > 
  > #### Directed ####
  > 
  > y0 <- as.network(mean_mat(Mmin,Mmax), matrix.type="adjacency", directed=TRUE)
  Error in set.vertex.attribute(g, "na", rep(FALSE, n), 1:n) : 
    attempt to set index 0/0 in SET_VECTOR_ELT
  Calls: as.network ... as.network.matrix -> network.initialize -> set.vertex.attribute
  Execution halted
Running the tests in ‘tests/gw_sp_tests.R’ failed.
Complete output:
  > #  File tests/gw_sp_tests.R in package ergm, 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-2020 Statnet Commons
  > #######################################################################
  > 
  > library(ergm)
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.1 created on 2020-10-06.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  
  ergm: version 3.11.0, created on 2020-10-14
  Copyright (c) 2020, Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Carter T. Butts, University of California -- Irvine
                      Steven M. Goodreau, University of Washington
                      Pavel N. Krivitsky, UNSW Sydney
                      Martina Morris, University of Washington
                      with contributions from
                      Li Wang
                      Kirk Li, University of Washington
                      Skye Bender-deMoll, University of Washington
                      Chad Klumb
                      Michał Bojanowski, Kozminski University
                      Ben Bolker
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("ergm").
  
  NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
  constraint which distorted the sampled distribution somewhat. In
  addition, Sampson's Monks datasets had mislabeled vertices. See the
  NEWS and the documentation for more details.
  
  NOTE: Some common term arguments pertaining to vertex attribute and
  level selection have changed in 3.10.0. See terms help for more
  details. Use 'options(ergm.term=list(version="3.9.4"))' to use old
  behavior.
  
  > 
  > data("faux.dixon.high")
  > 
  > test.approx = function(a, b, message, tol=1e-5) {
  +   if (abs(a-b) > tol) stop(message)
  + }
  > 
  > # testing on a larger network (comparing with functions in the ergm package)
  > net <- faux.dixon.high
  > if (!all(summary(net ~ dgwdsp(fixed=F, type='OTP'))[1:5] == c(4871, 1077, 228, 53, 17)))
  +   stop("DSP OTP count on large network incorrect")
  > test.approx(summary(net ~ dgwdsp(fixed=T, type='OTP', decay=0.1)), 6379.609, tol=1e-3, "GWDSP summary")
  > 
  > test.approx(ergm(net ~ edges + dgwdsp(fixed=T, decay=0.1, type="OTP"), estimate = "MPLE")$coef[2], 0.006467, "MPLE estimate on larger nw")
  Starting maximum pseudolikelihood estimation (MPLE):
  Evaluating the predictor and response matrix.
  Maximizing the pseudolikelihood.
  Finished MPLE.
  Stopping at the initial estimate.
  Evaluating log-likelihood at the estimate. 
  > 
  > # OTP and ITP are the same for dyadwise SP
  > if (summary(net ~ ddsp(type="OTP", d=2)) != 1077) stop("ddsp OTP count error")
  > if (summary(net ~ ddsp(type="ITP", d=2)) != 1077) stop("ddsp ITP count error")
  > if (summary(net ~ ddsp(type="OSP", d=2)) != 948) stop("ddsp OSP count error")
  > if (summary(net ~ ddsp(type="ISP", d=2)) != 1132) stop("ddsp ISP count error")
  > 
  > # GWDSP OTP test
  > 
  > net <- network.initialize(10, directed = T)
  Error in set.vertex.attribute(g, "na", rep(FALSE, n), 1:n) : 
    attempt to set index 0/0 in SET_VECTOR_ELT
  Calls: network.initialize -> set.vertex.attribute
  Execution halted
Running the tests in ‘tests/hamming_termtests.R’ failed.
Complete output:
  > #  File tests/hamming_termtests.R in package ergm, 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-2020 Statnet Commons
  > #######################################################################
  > library(ergm)
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.1 created on 2020-10-06.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  
  ergm: version 3.11.0, created on 2020-10-14
  Copyright (c) 2020, Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Carter T. Butts, University of California -- Irvine
                      Steven M. Goodreau, University of Washington
                      Pavel N. Krivitsky, UNSW Sydney
                      Martina Morris, University of Washington
                      with contributions from
                      Li Wang
                      Kirk Li, University of Washington
                      Skye Bender-deMoll, University of Washington
                      Chad Klumb
                      Michał Bojanowski, Kozminski University
                      Ben Bolker
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("ergm").
  
  NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
  constraint which distorted the sampled distribution somewhat. In
  addition, Sampson's Monks datasets had mislabeled vertices. See the
  NEWS and the documentation for more details.
  
  NOTE: Some common term arguments pertaining to vertex attribute and
  level selection have changed in 3.10.0. See terms help for more
  details. Use 'options(ergm.term=list(version="3.9.4"))' to use old
  behavior.
  
  > 
  > # Create test bipartite network (from SMG)
  > gmat <- cbind(
  + c(1, 1, 11, 13, 13, 16, 17, 18, 21, 21, 22, 24, 25, 26, 26, 28, 28, 
  + 29, 31, 31, 32, 33, 34, 34, 36, 36, 36, 37, 37, 40, 40, 42, 42, 43, 
  + 43, 43, 44, 45, 46, 48, 51, 51, 54, 55, 57, 57, 60, 61, 64, 64, 66, 
  + 68, 70, 71, 72, 73, 75, 76, 82, 86, 86, 89, 91, 92, 92, 93, 93, 93, 
  + 94, 95, 95, 97, 97, 98, 101, 106, 107, 108, 110, 111, 113, 114, 114, 
  + 118, 122, 122, 124, 124, 126, 126, 128, 132, 135, 135, 143, 145, 147, 
  + 147, 149, 150, 153, 158, 160, 162, 163, 164, 164, 166, 166, 168, 168, 
  + 172, 172, 173, 176, 176, 178, 180, 181, 182, 183, 183, 184, 186, 192, 
  + 195, 196, 196, 198, 199, 202, 203, 203, 204, 204, 207, 209, 214, 217, 
  + 218, 219, 220, 221, 226, 226, 228, 230, 232, 232, 232, 234, 234, 235, 
  + 236, 239, 241, 242, 244, 245, 247, 263, 263, 264, 268, 269, 269, 270, 
  + 271, 274, 274, 276, 276, 276, 280, 282, 283, 285, 289, 290, 291, 293, 
  + 295, 299, 301, 301, 302, 304, 305, 306, 306, 306, 312, 313, 315, 315, 
  + 318, 318, 321, 322, 322, 322, 322, 323, 327, 332, 335, 338, 338, 339, 
  + 339, 340, 340, 340, 340, 342, 349, 354, 354, 357, 358, 359, 360, 362, 
  + 362, 363, 364, 365, 370, 371, 372, 372, 373, 374, 377, 380, 388, 391, 
  + 391, 393, 394, 394, 395, 397, 397, 400, 401, 401, 402, 403, 404, 405, 
  + 409, 411, 412, 415, 419, 419, 419, 420, 420, 422, 422, 427, 427, 430, 
  + 434, 435, 436, 436, 437, 446, 447, 447, 449, 450, 457, 459, 459, 461, 
  + 462, 462, 464, 464, 465, 465, 466, 467, 468, 470, 470, 470, 472, 472, 
  + 472, 475, 477, 479, 481, 483, 487, 490, 490, 495, 497, 497, 498, 498, 
  + 498, 499, 501, 505, 508, 509, 509, 510, 512, 513, 513, 515, 516, 517, 
  + 520, 521, 523, 526, 528, 532, 539, 540, 541, 542, 543, 544, 544, 545, 
  + 547, 549, 549, 551, 558, 558, 560, 565, 573, 573, 574, 574, 577, 578, 
  + 579, 580, 580, 582, 582, 583, 584, 587, 587, 588, 592, 595, 595, 596, 
  + 596, 599, 601, 601, 601, 604, 606, 607, 608, 610, 614, 617, 617, 617, 
  + 618, 620, 623, 624, 628, 632, 633, 634, 634, 634, 635, 638, 640, 640, 
  + 642, 643, 644, 647, 651, 651, 652, 652, 652, 653, 655, 655, 655, 660, 
  + 661, 662, 662, 663, 665, 667, 669, 676, 677, 678, 679, 679, 679, 680, 
  + 681, 681, 684, 688, 691, 692, 698, 701, 705, 709, 710, 714, 716, 716, 
  + 717, 717, 720, 724, 727, 729, 729, 730, 732, 732, 733, 737, 738, 739, 
  + 740, 741, 741, 743, 746, 746, 747, 748, 755, 761, 764, 765, 766, 767, 
  + 767, 767, 768, 770, 771, 773, 774, 775, 776, 777, 778, 782, 782, 784, 
  + 785, 786, 786, 789, 789, 790, 794, 796, 800, 800, 801, 801, 802, 802, 
  + 804, 806, 806, 810, 811, 811, 812, 815, 817, 818, 820, 820, 824, 826, 
  + 828, 828, 828, 828, 829, 831, 833, 835, 837, 839, 840, 843, 844, 845, 
  + 846, 847, 848, 848, 850, 850, 852, 854, 854, 855, 855, 857, 858, 863, 
  + 866, 867, 869, 870, 873, 874, 875, 876, 876, 877, 878, 879, 881, 883, 
  + 883, 883, 884, 884, 885, 885, 887, 891, 894, 896, 896, 896, 896, 897, 
  + 897, 900, 902, 903, 905, 906, 911, 921, 922, 925, 927, 929, 930, 931, 
  + 933, 935, 936, 936, 938, 938, 939, 943, 944, 945, 946, 947, 947, 948, 
  + 949, 955, 955, 956, 956, 957, 960, 961, 963, 964, 967, 967, 967, 972, 
  + 973, 974, 976, 976, 978, 979, 983, 984, 985, 987, 988, 988, 989, 990, 
  + 991, 994, 994, 998, 999, 1001, 1003, 1004, 1006, 1006),
  + c(1607, 1674, 1839, 1179, 1198, 1705, 1610, 1803, 1385, 1555, 1884, 1681, 
  + 1141, 1075, 1093, 1024, 1613, 1514, 1072, 1099, 1367, 1737, 1102, 1616, 
  + 1043, 1127, 1772, 1742, 1839, 1014, 1323, 1209, 1610, 1010, 1180, 1709, 
  + 1692, 1423, 1783, 1637, 1183, 1284, 1427, 1953, 1616, 1902, 1695, 1157, 
  + 1975, 1986, 1811, 1029, 1815, 1893, 1264, 1473, 1998, 1633, 1014, 1206, 
  + 1760, 1024, 1544, 1222, 1328, 1194, 1247, 1861, 1263, 1406, 1479, 1565, 
  + 1730, 1142, 1647, 1162, 1280, 1635, 1339, 1581, 1431, 1016, 1109, 1926, 
  + 1012, 1778, 1587, 1895, 1099, 1442, 1815, 1848, 1499, 1759, 1689, 1192, 
  + 1220, 1703, 1413, 1451, 1532, 1999, 1790, 1452, 1322, 1077, 1325, 1431, 
  + 1798, 1114, 1896, 1292, 1296, 1704, 1876, 1887, 1155, 1362, 1837, 1637, 
  + 1652, 1935, 1680, 1071, 1519, 1122, 1066, 1812, 1204, 1555, 1739, 1112, 
  + 1164, 1217, 1937, 1283, 1472, 1170, 1324, 1928, 1521, 1134, 1721, 1068, 
  + 1659, 1640, 1912, 1567, 1648, 1985, 1527, 1718, 1414, 1424, 1224, 1462, 
  + 1621, 1516, 1680, 1334, 1480, 1794, 1213, 1042, 1429, 1611, 1330, 1905, 
  + 1236, 1765, 1094, 1582, 1709, 1606, 1653, 1435, 1683, 1697, 1262, 1266, 
  + 1606, 1226, 1017, 1139, 1916, 1599, 1296, 1064, 1433, 1844, 1902, 1257, 
  + 1812, 1050, 1325, 1029, 1688, 1841, 1124, 1278, 1825, 1917, 1832, 1647, 
  + 1493, 1157, 1080, 1280, 1315, 1903, 1767, 1900, 1945, 1965, 1548, 1450, 
  + 1779, 1880, 1989, 1594, 1946, 1641, 1737, 1762, 1390, 1498, 1035, 1120, 
  + 1058, 1079, 1287, 1940, 1419, 1357, 1930, 1669, 1252, 1263, 1538, 1086, 
  + 1766, 1911, 1609, 1873, 1713, 1826, 1907, 1103, 1355, 1400, 1509, 1641, 
  + 1619, 1372, 1865, 1084, 1427, 1849, 1144, 1572, 1471, 1733, 1126, 1529, 
  + 1694, 1321, 1211, 1659, 1787, 1247, 1409, 1162, 1959, 1309, 1428, 1614, 
  + 1402, 1572, 1944, 1187, 1587, 1095, 1422, 1465, 1815, 1065, 1593, 1559, 
  + 1612, 1645, 1833, 1047, 1351, 1622, 1754, 1267, 1998, 1222, 1997, 1377, 
  + 1144, 1514, 1097, 1652, 1826, 1015, 1091, 1775, 1086, 1425, 1775, 1395, 
  + 1375, 1708, 1513, 1439, 1795, 1808, 1725, 1229, 1658, 1660, 1930, 1876, 
  + 1236, 1801, 1749, 1299, 1127, 1285, 1573, 1521, 1169, 1391, 1626, 1060, 
  + 1576, 1762, 1546, 1049, 1408, 1906, 1013, 1125, 1372, 1692, 1902, 1417, 
  + 1021, 1539, 1145, 1635, 1037, 1237, 1691, 1262, 1168, 1776, 1193, 1529, 
  + 1508, 1603, 1679, 1987, 1409, 1071, 1144, 1434, 1377, 1235, 1095, 1710, 
  + 1956, 1481, 1422, 1584, 1803, 1027, 1624, 1514, 1241, 1985, 1654, 1999, 
  + 1221, 1367, 1535, 1641, 1615, 1614, 1944, 1355, 1903, 1881, 1328, 1357, 
  + 1904, 1205, 1454, 1908, 1415, 1262, 1450, 1799, 1178, 1325, 1414, 1694, 
  + 1039, 1264, 1094, 1962, 1458, 1450, 1518, 1033, 1342, 1824, 1273, 1702, 
  + 1917, 1959, 1141, 1111, 1148, 1958, 1411, 1726, 1629, 1487, 1216, 1585, 
  + 1763, 1083, 1469, 1643, 1288, 1769, 1191, 1386, 1627, 1541, 1738, 1074, 
  + 1377, 1860, 1681, 1464, 1088, 1927, 1671, 1593, 1968, 1487, 1829, 1374, 
  + 1818, 1008, 1395, 1539, 1381, 1813, 1889, 1390, 1248, 1706, 1843, 1340, 
  + 1163, 1934, 1567, 1986, 1289, 1958, 1865, 1531, 1114, 1457, 1688, 1954, 
  + 1760, 1753, 1894, 1800, 1882, 1491, 1984, 1094, 1938, 1233, 1419, 1730, 
  + 1930, 1278, 1666, 1958, 1445, 1254, 1043, 1605, 1753, 1151, 1085, 1664, 
  + 1817, 1969, 1982, 1049, 1673, 1303, 1685, 1389, 1250, 1128, 1319, 1924, 
  + 1260, 1706, 1548, 1506, 1753, 1138, 1538, 1145, 1257, 1918, 1511, 1682, 
  + 1161, 1623, 1318, 1988, 1417, 1030, 1096, 1601, 1118, 1395, 1919, 1993, 
  + 1278, 1871, 1889, 1794, 1128, 1256, 1383, 1540, 1954, 1594, 1651, 1968, 
  + 1774, 1167, 1174, 1211, 1878, 1956, 1018, 1842, 1771, 1579, 1165, 1909, 
  + 1669, 1279, 1994, 1911, 1485, 1544, 1091, 1205, 1841, 1204, 1448, 1293, 
  + 1613, 1390, 1675, 1438, 1857, 1589, 1787, 1784, 1135, 1323, 1082, 1283, 
  + 1803, 1928, 1085, 1158, 1570, 1169, 1158, 1642, 1634, 1497, 1513, 1635, 
  + 1325, 1522, 1833, 1519, 1792, 1569, 1348, 1956, 1261, 1070, 1296, 1092, 
  + 1434, 1369, 1213, 1977, 1033, 1729, 1838, 1047, 1258, 1090, 1146, 1198, 
  + 1810))
  > 
  > g <- network(gmat, directed=F, bipartite=1006)
  Error in set.vertex.attribute(g, "na", rep(FALSE, n), 1:n) : 
    attempt to set index 0/0 in SET_VECTOR_ELT
  Calls: network ... as.network.matrix -> network.initialize -> set.vertex.attribute
  Execution halted
Running the tests in ‘tests/nodemix.R’ failed.
Complete output:
  > #  File tests/nodemix.R in package ergm, 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-2020 Statnet Commons
  > #######################################################################
  > library(ergm)
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.1 created on 2020-10-06.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  
  ergm: version 3.11.0, created on 2020-10-14
  Copyright (c) 2020, Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Carter T. Butts, University of California -- Irvine
                      Steven M. Goodreau, University of Washington
                      Pavel N. Krivitsky, UNSW Sydney
                      Martina Morris, University of Washington
                      with contributions from
                      Li Wang
                      Kirk Li, University of Washington
                      Skye Bender-deMoll, University of Washington
                      Chad Klumb
                      Michał Bojanowski, Kozminski University
                      Ben Bolker
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("ergm").
  
  NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
  constraint which distorted the sampled distribution somewhat. In
  addition, Sampson's Monks datasets had mislabeled vertices. See the
  NEWS and the documentation for more details.
  
  NOTE: Some common term arguments pertaining to vertex attribute and
  level selection have changed in 3.10.0. See terms help for more
  details. Use 'options(ergm.term=list(version="3.9.4"))' to use old
  behavior.
  
  > # Test undirected network
  > data(faux.mesa.high)
  > m <- matrix(c(75, 0, 0, 1, 1, 1, 0, 33, 2, 4, 2, 1,
  +  0, 2, 23, 7, 6, 4, 1, 4, 7, 9, 1, 5, 1, 2, 6, 1, 17, 5,
  +  1, 1, 4, 5, 5, 6), 6, 6)  # Correct answer!
  > if (max(abs(m[upper.tri(m, diag=T)] - summary(faux.mesa.high ~ nodemix("Grade")))) > 0)
  +   stop ("nodemix failed test on undirected network faux.mesa.high")
  > 
  > 
  > # directed network
  > data(sampson)
  > grpord<-c("Turks","Loyal","Outcasts")
  > m2 <- matrix(c(30, 9, 7, 5, 23, 1, 1, 2, 10), 3, 3,dimnames=list(From=grpord,To=grpord)) # Correct answer!
  > mixnames<-t(sapply(grpord,function(from) sapply(grpord,function(to) paste("mix.group",from,to,sep="."))))
  > if (!all(c(m2) == summary(samplike ~ nodemix("group"))[c(mixnames)]))
  +   stop ("nodemix failed test on directed network samplike")
  > 
  > # bipartite network
  > el <- cbind( c(17, 20, 22, 26, 19, 24, 16, 22, 18, 23, 28, 20,
  +                22, 23, 17, 21, 25, 21, 27, 16, 19, 18, 23),
  +            c(1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 9, 10, 
  +              10, 11, 11))
  > mynw <- network(el, bipartite=15, directed=FALSE) 
  Error in set.vertex.attribute(g, "na", rep(FALSE, n), 1:n) : 
    attempt to set index 0/0 in SET_VECTOR_ELT
  Calls: network ... as.network.matrix -> network.initialize -> set.vertex.attribute
  Execution halted
Running the tests in ‘tests/requireNamespaceTest.R’ failed.
Complete output:
  > #  File tests/requireNamespaceTest.R in package ergm, 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-2020 Statnet Commons
  > #######################################################################
  > library(network)
  network: Classes for Relational Data
  Version 1.16.1 created on 2020-10-06.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  > data(flo)
  > requireNamespace('ergm')   #load the namespace, but don't attach the package
  Loading required namespace: ergm
  > 
  > # run a summary
  > ergm::summary_formula(as.network(flo)~density)
  Error in set.vertex.attribute(g, "na", rep(FALSE, n), 1:n) : 
    attempt to set index 0/0 in SET_VECTOR_ELT
  Calls: <Anonymous> ... as.network.matrix -> network.initialize -> set.vertex.attribute
  Execution halted
Running the tests in ‘tests/termTests.b12nodematch.R’ failed.
Complete output:
  > #  File tests/termTests.b12nodematch.R in package ergm, 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-2020 Statnet Commons
  > #######################################################################
  > 
  >  library(ergm)
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.1 created on 2020-10-06.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  
  ergm: version 3.11.0, created on 2020-10-14
  Copyright (c) 2020, Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Carter T. Butts, University of California -- Irvine
                      Steven M. Goodreau, University of Washington
                      Pavel N. Krivitsky, UNSW Sydney
                      Martina Morris, University of Washington
                      with contributions from
                      Li Wang
                      Kirk Li, University of Washington
                      Skye Bender-deMoll, University of Washington
                      Chad Klumb
                      Michał Bojanowski, Kozminski University
                      Ben Bolker
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("ergm").
  
  NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
  constraint which distorted the sampled distribution somewhat. In
  addition, Sampson's Monks datasets had mislabeled vertices. See the
  NEWS and the documentation for more details.
  
  NOTE: Some common term arguments pertaining to vertex attribute and
  level selection have changed in 3.10.0. See terms help for more
  details. Use 'options(ergm.term=list(version="3.9.4"))' to use old
  behavior.
  
  > ## bipartite network
  >  el <- cbind( c(17, 20, 22, 26, 19, 24, 16, 22, 18, 23, 28, 20,
  +                22, 23, 17, 21, 25, 21, 27, 16, 19, 18, 23, 26, 16),
  +             c(1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 9, 10, 
  +               10, 11, 11, 4, 2))
  >  mynw <- network(el, bipartite=15, directed=FALSE) 
  Error in set.vertex.attribute(g, "na", rep(FALSE, n), 1:n) : 
    attempt to set index 0/0 in SET_VECTOR_ELT
  Calls: network ... as.network.matrix -> network.initialize -> set.vertex.attribute
  Execution halted
Running the tests in ‘tests/termTests.bipartite.R’ failed.
Complete output:
  > #  File tests/termTests.bipartite.R in package ergm, 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-2020 Statnet Commons
  > #######################################################################
  > 
  > library(ergm)
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.1 created on 2020-10-06.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  
  ergm: version 3.11.0, created on 2020-10-14
  Copyright (c) 2020, Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Carter T. Butts, University of California -- Irvine
                      Steven M. Goodreau, University of Washington
                      Pavel N. Krivitsky, UNSW Sydney
                      Martina Morris, University of Washington
                      with contributions from
                      Li Wang
                      Kirk Li, University of Washington
                      Skye Bender-deMoll, University of Washington
                      Chad Klumb
                      Michał Bojanowski, Kozminski University
                      Ben Bolker
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("ergm").
  
  NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
  constraint which distorted the sampled distribution somewhat. In
  addition, Sampson's Monks datasets had mislabeled vertices. See the
  NEWS and the documentation for more details.
  
  NOTE: Some common term arguments pertaining to vertex attribute and
  level selection have changed in 3.10.0. See terms help for more
  details. Use 'options(ergm.term=list(version="3.9.4"))' to use old
  behavior.
  
  > 
  > # a bipartite nw
  > set.seed(143)
  > b1 <- floor(runif(60, 1,100))
  > b2 <- floor(runif(60, 101, 130))
  > exbip.el <- cbind(b1,b2)
  > bipnw <- as.network(exbip.el, matrix.type="edgelist", bipartite=100, directed=FALSE)
  Error in set.vertex.attribute(g, "na", rep(FALSE, n), 1:n) : 
    attempt to set index 0/0 in SET_VECTOR_ELT
  Calls: as.network ... as.network.matrix -> network.initialize -> set.vertex.attribute
  Execution halted
Running the tests in ‘tests/termTests.flexible.R’ failed.
Complete output:
  > #  File tests/termTests.flexible.R in package ergm, 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-2020 Statnet Commons
  > #######################################################################
  > 
  > library(ergm)
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.1 created on 2020-10-06.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  
  ergm: version 3.11.0, created on 2020-10-14
  Copyright (c) 2020, Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Carter T. Butts, University of California -- Irvine
                      Steven M. Goodreau, University of Washington
                      Pavel N. Krivitsky, UNSW Sydney
                      Martina Morris, University of Washington
                      with contributions from
                      Li Wang
                      Kirk Li, University of Washington
                      Skye Bender-deMoll, University of Washington
                      Chad Klumb
                      Michał Bojanowski, Kozminski University
                      Ben Bolker
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("ergm").
  
  NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
  constraint which distorted the sampled distribution somewhat. In
  addition, Sampson's Monks datasets had mislabeled vertices. See the
  NEWS and the documentation for more details.
  
  NOTE: Some common term arguments pertaining to vertex attribute and
  level selection have changed in 3.10.0. See terms help for more
  details. Use 'options(ergm.term=list(version="3.9.4"))' to use old
  behavior.
  
  > 
  > # a bipartite nw
  > set.seed(143)
  > b1 <- floor(runif(60, 1,100))
  > b2 <- floor(runif(60, 101, 130))
  > exbip.el <- cbind(b1,b2)
  > bipnw <- as.network(exbip.el, matrix.type="edgelist", bipartite=100, directed=FALSE)
  Error in set.vertex.attribute(g, "na", rep(FALSE, n), 1:n) : 
    attempt to set index 0/0 in SET_VECTOR_ELT
  Calls: as.network ... as.network.matrix -> network.initialize -> set.vertex.attribute
  Execution halted
Running the tests in ‘tests/termTests.undirected.R’ failed.
Complete output:
  > #  File tests/termTests.undirected.R in package ergm, 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-2020 Statnet Commons
  > #######################################################################
  > 
  > library(ergm)
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.1 created on 2020-10-06.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  
  ergm: version 3.11.0, created on 2020-10-14
  Copyright (c) 2020, Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Carter T. Butts, University of California -- Irvine
                      Steven M. Goodreau, University of Washington
                      Pavel N. Krivitsky, UNSW Sydney
                      Martina Morris, University of Washington
                      with contributions from
                      Li Wang
                      Kirk Li, University of Washington
                      Skye Bender-deMoll, University of Washington
                      Chad Klumb
                      Michał Bojanowski, Kozminski University
                      Ben Bolker
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("ergm").
  
  NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
  constraint which distorted the sampled distribution somewhat. In
  addition, Sampson's Monks datasets had mislabeled vertices. See the
  NEWS and the documentation for more details.
  
  NOTE: Some common term arguments pertaining to vertex attribute and
  level selection have changed in 3.10.0. See terms help for more
  details. Use 'options(ergm.term=list(version="3.9.4"))' to use old
  behavior.
  
  > 
  > # an undirected nw
  > data(faux.mesa.high)
  > fmh <- faux.mesa.high
  > set.seed(7)
  > set.edge.attribute(fmh, "GradeMet", rbinom(203, 6, .5))
  > 
  > 
  > # a small undirected nw w/ lots o' triangles
  > set.seed(20)
  > t<-trunc(runif(160, 1, 20))
  > set.seed(21)
  > h<-trunc(runif(160, 1, 20))
  > el <- cbind(t,h)
  > bad <- which(el[,2]==el[,1])
  > el[bad,2] = el[bad,2]+1
  > unnw <- network(el, directed=FALSE)
  Error in set.vertex.attribute(g, "na", rep(FALSE, n), 1:n) : 
    attempt to set index 0/0 in SET_VECTOR_ELT
  Calls: network ... as.network.matrix -> network.initialize -> set.vertex.attribute
  Execution halted
Running the tests in ‘tests/termTests.valued.R’ failed.
Complete output:
  > #  File tests/termTests.valued.R in package ergm, 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-2020 Statnet Commons
  > #######################################################################
  > 
  > library(ergm)
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.1 created on 2020-10-06.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  
  ergm: version 3.11.0, created on 2020-10-14
  Copyright (c) 2020, Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Carter T. Butts, University of California -- Irvine
                      Steven M. Goodreau, University of Washington
                      Pavel N. Krivitsky, UNSW Sydney
                      Martina Morris, University of Washington
                      with contributions from
                      Li Wang
                      Kirk Li, University of Washington
                      Skye Bender-deMoll, University of Washington
                      Chad Klumb
                      Michał Bojanowski, Kozminski University
                      Ben Bolker
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("ergm").
  
  NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
  constraint which distorted the sampled distribution somewhat. In
  addition, Sampson's Monks datasets had mislabeled vertices. See the
  NEWS and the documentation for more details.
  
  NOTE: Some common term arguments pertaining to vertex attribute and
  level selection have changed in 3.10.0. See terms help for more
  details. Use 'options(ergm.term=list(version="3.9.4"))' to use old
  behavior.
  
  > 
  > tst <- function(truth, test){
  +   stopifnot(isTRUE(all.equal(truth,test,check.attributes=FALSE)))
  + }
  > 
  > n <- 129
  > n1 <- 100
  > n2 <- n-n1
  > nz <- 60
  > pint <- .5
  > 
  > f <- rep(letters[1:3], length.out=n)
  > f1 <- f[1:n1]
  > f2 <- f[-(1:n1)]
  > q <- rep(3:1, length.out=n)
  > q1 <- q[1:n1]
  > q2 <- q[-(1:n1)]
  > 
  > # a bipartite nw
  > set.seed(143)
  > b1 <- floor(runif(nz, 1,n1+1))
  > b2 <- floor(runif(nz, n1+1, n+1))
  > exbip.el <- unique(cbind(b1,b2))
  > v <- runif(nrow(exbip.el), -4, 4)
  > v <- ifelse(rbinom(length(v),1,pint), round(v), v)
  > exbip.el <- cbind(exbip.el,v)
  > attr(exbip.el, "n") <- n
  > bipnw <- as.network(exbip.el, matrix.type="edgelist", bipartite=n1, directed=FALSE, ignore.eval=FALSE, names.eval="w")
  Error in set.vertex.attribute(g, "na", rep(FALSE, n), 1:n) : 
    attempt to set index 0/0 in SET_VECTOR_ELT
  Calls: as.network ... as.network.matrix -> network.initialize -> set.vertex.attribute
  Execution halted
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > #  File tests/testthat.R in package ergm, 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-2020 Statnet Commons
  > #######################################################################
  > library(testthat)
  > library(ergm)
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.1 created on 2020-10-06.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  
  ergm: version 3.11.0, created on 2020-10-14
  Copyright (c) 2020, Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Carter T. Butts, University of California -- Irvine
                      Steven M. Goodreau, University of Washington
                      Pavel N. Krivitsky, UNSW Sydney
                      Martina Morris, University of Washington
                      with contributions from
                      Li Wang
                      Kirk Li, University of Washington
                      Skye Bender-deMoll, University of Washington
                      Chad Klumb
                      Michał Bojanowski, Kozminski University
                      Ben Bolker
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("ergm").
  
  NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
  constraint which distorted the sampled distribution somewhat. In
  addition, Sampson's Monks datasets had mislabeled vertices. See the
  NEWS and the documentation for more details.
  
  NOTE: Some common term arguments pertaining to vertex attribute and
  level selection have changed in 3.10.0. See terms help for more
  details. Use 'options(ergm.term=list(version="3.9.4"))' to use old
  behavior.
  
  > 
  > test_check("ergm")
  Sample statistics summary:
  
  Iterations = 1:1024
  Thinning interval = 1 
  Number of chains = 1 
  Sample size per chain = 1024 
  
  1. Empirical mean and standard deviation for each variable,
     plus standard error of the mean:
  
               Mean    SD Naive SE Time-series SE
  edgecov.a -0.6387 1.469  0.04591         0.5261
  edgecov.a  2.0518 2.363  0.07383         1.2938
  
  2. Quantiles for each variable:
  
            2.5% 25% 50% 75% 97.5%
  edgecov.a   -3  -2  -1   0     2
  edgecov.a   -1   0   2   3     8
  
  
  Sample statistics cross-correlations:
            edgecov.a edgecov.a
  edgecov.a 1.0000000 0.2280587
  edgecov.a 0.2280587 1.0000000
  
  Sample statistics auto-correlation:
  Chain 1 
        edgecov.a edgecov.a
  Lag 0 1.0000000 1.0000000
  Lag 1 0.9833876 0.9935018
  Lag 2 0.9685866 0.9873539
  Lag 3 0.9542384 0.9812151
  Lag 4 0.9403430 0.9752513
  Lag 5 0.9271897 0.9685780
  
  Sample statistics burn-in diagnostic (Geweke):
  Chain 1 
  
  Fraction in 1st window = 0.1
  Fraction in 2nd window = 0.5 
  
  edgecov.a edgecov.a 
      2.726    -1.792 
  
  Individual P-values (lower = worse):
   edgecov.a  edgecov.a 
  0.00640541 0.07312954 
  Joint P-value (lower = worse):  0.00460948 .
  
  MCMC diagnostics shown here are from the last round of simulation, prior to computation of final parameter estimates. Because the final estimates are refinements of those used for this simulation run, these diagnostics may understate model performance. To directly assess the performance of the final model on in-model statistics, please use the GOF command: gof(ergmFitObject, GOF=~model).
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● empty test (1)
  
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-bd.R:27:3): Bounded degree (bd()) maximum constraint for undirected networks ──
  Vector(s)  do not vary but equal mu0; they have been ignored for the purposes of testing.
  Backtrace:
   1. testthat::expect_true(...) test-bd.R:27:2
   4. ergm::approx.hotelling.diff.test(constr, degr[, -2])
  ── Warning (test-bd.R:36:3): Bounded degree (bd()) constraints for directed networks ──
  Vector(s)  do not vary but equal mu0; they have been ignored for the purposes of testing.
  Backtrace:
   1. testthat::expect_true(...) test-bd.R:36:2
   4. ergm::approx.hotelling.diff.test(constr, degr[, -(2:4)])
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-bipartite-missing-data.R:12:3): bipartite terms abort for missing data when they should and not when they shouldn't ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(10, bip = 4, dir = FALSE) test-bipartite-missing-data.R:12:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-ergm-godfather.R:11:1): (code run outside of `test_that()`) ─────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(4, dir = TRUE) test-ergm-godfather.R:11:0
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-ergm-san.R:15:2): SAN moves from a sparser network to a denser one with desired triadic attributes ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network(n, density = 0.05/100 * n, directed = FALSE) test-ergm-san.R:15:8
   2.   ├─network::as.network(...)
   3.   └─ergm:::as.network.numeric(...)
   4.     └─network::network(...)
   5.       ├─network::as.network(...)
   6.       └─network::as.network.matrix(...)
   7.         └─network::network.initialize(...)
   8.           └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-ergm-san.R:25:2): SAN correctly adjusts inward and outward sums while maintaining edge count ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network(n, numedges = n) test-ergm-san.R:25:8
   2.   ├─network::as.network(...)
   3.   └─ergm:::as.network.numeric(...)
   4.     └─network::network(...)
   5.       ├─network::as.network(...)
   6.       └─network::as.network.matrix(...)
   7.         └─network::network.initialize(...)
   8.           └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-ergm-san.R:36:5): SAN matches target stats while respecting infinite offsets ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network(n, directed = FALSE, density = 0) test-ergm-san.R:36:4
   2.   ├─network::as.network(...)
   3.   └─ergm:::as.network.numeric(...)
   4.     └─network::network(...)
   5.       ├─network::as.network(...)
   6.       └─network::as.network.matrix(...)
   7.         └─network::network.initialize(...)
   8.           └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-ergm-san.R:45:5): SAN matches target stats while respecting infinite dyad-dependent offsets ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network(n, directed = FALSE, density = 0) test-ergm-san.R:45:4
   2.   ├─network::as.network(...)
   3.   └─ergm:::as.network.numeric(...)
   4.     └─network::network(...)
   5.       ├─network::as.network(...)
   6.       └─network::as.network.matrix(...)
   7.         └─network::network.initialize(...)
   8.           └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-ergm-san.R:53:5): weighted SAN matches target stats while respecting infinite offsets ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network(n, directed = FALSE, numedges = 0) test-ergm-san.R:53:4
   2.   ├─network::as.network(...)
   3.   └─ergm:::as.network.numeric(...)
   4.     └─network::network(...)
   5.       ├─network::as.network(...)
   6.       └─network::as.network.matrix(...)
   7.         └─network::network.initialize(...)
   8.           └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-ergm-san.R:62:5): SAN errors when passed the wrong number of offsets ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network(n, directed = FALSE, density = 0) test-ergm-san.R:62:4
   2.   ├─network::as.network(...)
   3.   └─ergm:::as.network.numeric(...)
   4.     └─network::network(...)
   5.       ├─network::as.network(...)
   6.       └─network::as.network.matrix(...)
   7.         └─network::network.initialize(...)
   8.           └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-ergm-san.R:68:5): san.ergm does not default to offsets in the ergm ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network(n, directed = FALSE, numedges = 1) test-ergm-san.R:68:4
   2.   ├─network::as.network(...)
   3.   └─ergm:::as.network.numeric(...)
   4.     └─network::network(...)
   5.       ├─network::as.network(...)
   6.       └─network::as.network.matrix(...)
   7.         └─network::network.initialize(...)
   8.           └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-ergm-san.R:78:5): SAN works with curved terms ───────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network(n, directed = FALSE, numedges = 1) test-ergm-san.R:78:4
   2.   ├─network::as.network(...)
   3.   └─ergm:::as.network.numeric(...)
   4.     └─network::network(...)
   5.       ├─network::as.network(...)
   6.       └─network::as.network.matrix(...)
   7.         └─network::network.initialize(...)
   8.           └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-ergm-san.R:111:5): SAN offsets work with curved terms ───────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network(n, directed = FALSE, numedges = 1) test-ergm-san.R:111:4
   2.   ├─network::as.network(...)
   3.   └─ergm:::as.network.numeric(...)
   4.     └─network::network(...)
   5.       ├─network::as.network(...)
   6.       └─network::as.network.matrix(...)
   7.         └─network::network.initialize(...)
   8.           └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-mple-target.R:11:1): (code run outside of `test_that()`) ────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(n = n, directed = FALSE) test-mple-target.R:11:0
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-predict.ergm.R:14:3): predict.formula(type=) give correct results ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(3, directed = TRUE) test-predict.ergm.R:14:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-predict.ergm.R:29:3): predict.formula(conditional=FALSE) ────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(3, directed = TRUE) test-predict.ergm.R:29:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-predict.ergm.R:45:3): works for edges model on small digraph ────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(3, directed = TRUE) test-predict.ergm.R:45:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-predict.ergm.R:72:3): predict.formula(output='matrix') works correctly ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(3, directed = TRUE) test-predict.ergm.R:72:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-predict.ergm.R:87:3): works for edges model on small graph ──────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(3, directed = FALSE) test-predict.ergm.R:87:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-predict.ergm.R:112:3): predict.formula(net ~ edges + offset(edges)) ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(4, directed = FALSE) test-predict.ergm.R:112:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-predict.ergm.R:131:3): predict.formula(net ~ edges + offset(nodematch)) ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(4, directed = FALSE) test-predict.ergm.R:131:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-predict.ergm.R:151:3): predict.formula(net ~ edges + degree(1) ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(3, directed = FALSE) test-predict.ergm.R:151:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-term-b12factor.R:11:1): (code run outside of `test_that()`) ─────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(4, bipartite = 2, directed = FALSE) test-term-b12factor.R:11:0
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-term-edgecov.R:12:3): edgecov works with undirected unipartite networks ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(5, dir = FALSE) test-term-edgecov.R:12:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-term-edgecov.R:25:3): edgecov works with undirected bipartite networks ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(10, bip = 4, dir = FALSE) test-term-edgecov.R:25:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-term-edgecov.R:43:3): edgecov works with directed networks ──────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(5, dir = TRUE) test-term-edgecov.R:43:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-term-mm.R:16:1): (code run outside of `test_that()`) ────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. ├─network::as.network(...) test-term-mm.R:16:0
   2. └─network::as.network.matrix(...)
   3.   └─network::network.initialize(...)
   4.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-valued-terms.R:41:3): valued triadic effects in undirected networks ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(20, dir = FALSE) test-valued-terms.R:41:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-valued-terms.R:71:3): valued triadic effects in directed networks ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(20, dir = TRUE) test-valued-terms.R:71:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  
  [ FAIL 27 | WARN 2 | SKIP 1 | PASS 23 ]
  Error: Test failures
  Execution halted
Running the tests in ‘tests/utils_tests.R’ failed.
Complete output:
  > #  File tests/utils_tests.R in package ergm, 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-2020 Statnet Commons
  > #######################################################################
  > 
  > 
  > # ------------- tests for the update.network function -----
  > 
  > require(ergm)
  Loading required package: ergm
  Loading required package: network
  network: Classes for Relational Data
  Version 1.16.1 created on 2020-10-06.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  
  ergm: version 3.11.0, created on 2020-10-14
  Copyright (c) 2020, Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Carter T. Butts, University of California -- Irvine
                      Steven M. Goodreau, University of Washington
                      Pavel N. Krivitsky, UNSW Sydney
                      Martina Morris, University of Washington
                      with contributions from
                      Li Wang
                      Kirk Li, University of Washington
                      Skye Bender-deMoll, University of Washington
                      Chad Klumb
                      Michał Bojanowski, Kozminski University
                      Ben Bolker
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("ergm").
  
  NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
  constraint which distorted the sampled distribution somewhat. In
  addition, Sampson's Monks datasets had mislabeled vertices. See the
  NEWS and the documentation for more details.
  
  NOTE: Some common term arguments pertaining to vertex attribute and
  level selection have changed in 3.10.0. See terms help for more
  details. Use 'options(ergm.term=list(version="3.9.4"))' to use old
  behavior.
  
  > aaa <- network.initialize(10,directed=TRUE,loops=TRUE)
  Error in set.vertex.attribute(g, "na", rep(FALSE, n), 1:n) : 
    attempt to set index 0/0 in SET_VECTOR_ELT
  Calls: network.initialize -> set.vertex.attribute
  Execution halted