Running ‘requireNamespaceTest.R’ [4s/5s]
  Running ‘testthat.R’ [17m/10m]
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-2023 Statnet Commons
  > ################################################################################
  > library(testthat)
  > library(ergm)
  Loading required package: network
  
  'network' 1.18.2 (2023-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
  
  
  'ergm' 4.6.0 (2023-12-17), 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.
  
  > 
  > test_check("ergm")
  Starting 2 test processes
  [ FAIL 11 | WARN 9093 | SKIP 0 | PASS 3601 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-gof.R:17:3'): gof() defaults are correct for bipartite networks ──
  `gof <- gof(fit, control = ctrl4)` produced warnings.
  ── Failure ('test-gof.R:28:3'): gof() defaults are correct for undirected networks ──
  `gof <- gof(fit, control = ctrl4)` produced warnings.
  ── Failure ('test-gof.R:40:3'): gof() defaults and GOF handling is correct for directed networks ──
  `gof <- gof(fit, control = ctrl4)` produced warnings.
  ── Failure ('test-gof.R:45:3'): gof() defaults and GOF handling is correct for directed networks ──
  `gof <- gof(fit, GOF = ~idegree, control = ctrl4)` produced warnings.
  ── Failure ('test-gof.R:50:3'): gof() defaults and GOF handling is correct for directed networks ──
  `gof <- gof(fit, GOF = ~idegree - model, control = ctrl4)` produced warnings.
  ── Failure ('test-nodrop.R:19:3'): shouldn't need to drop ──────────────────────
  `ergm(...)` threw an unexpected warning.
  Message: 'is.R' is deprecated.
  See help("Deprecated")
  Class:   deprecatedWarning/warning/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-nodrop.R:19:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─ergm::ergm(...)
    8. │ └─ergm:::ergm.fit(...)
    9. │   └─ergm:::ergm.MCMLE(...)
   10. │     └─ergm::ergm_MCMC_sample(...)
   11. │       └─... %>% lapply.mcmc.list(`-`)
   12. ├─statnet.common::lapply.mcmc.list(., `-`)
   13. │ ├─coda::as.mcmc.list(lapply(lapply(X, FUN, ...), as.mcmc))
   14. │ ├─base::lapply(lapply(X, FUN, ...), as.mcmc)
   15. │ └─base::lapply(X, FUN, ...)
   16. └─statnet.common::lapply.mcmc.list(., mcmc, start = 1, thin = interval)
   17.   ├─coda::as.mcmc.list(lapply(lapply(X, FUN, ...), as.mcmc))
   18.   └─coda:::as.mcmc.list.default(lapply(lapply(X, FUN, ...), as.mcmc))
   19.     └─coda::mcmc.list(x)
   20.       └─base::is.R()
   21.         └─base::.Deprecated()
  ── Failure ('test-nonident-test.R:26:3'): Model identifiable only due to offsets does not. ──
  `ergm(...)` threw an unexpected warning.
  Message: 'is.R' is deprecated.
  See help("Deprecated")
  Class:   deprecatedWarning/warning/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-nonident-test.R:26:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─ergm::ergm(...)
    8. │ └─ergm:::ergm.fit(...)
    9. │   └─ergm:::ergm.MCMLE(...)
   10. │     └─ergm::ergm_MCMC_sample(...)
   11. │       └─... %>% lapply.mcmc.list(`-`)
   12. ├─statnet.common::lapply.mcmc.list(., `-`)
   13. │ ├─coda::as.mcmc.list(lapply(lapply(X, FUN, ...), as.mcmc))
   14. │ ├─base::lapply(lapply(X, FUN, ...), as.mcmc)
   15. │ └─base::lapply(X, FUN, ...)
   16. └─statnet.common::lapply.mcmc.list(., mcmc, start = 1, thin = interval)
   17.   ├─coda::as.mcmc.list(lapply(lapply(X, FUN, ...), as.mcmc))
   18.   └─coda:::as.mcmc.list.default(lapply(lapply(X, FUN, ...), as.mcmc))
   19.     └─coda::mcmc.list(x)
   20.       └─base::is.R()
   21.         └─base::.Deprecated()
  ── Failure ('test-nonunique-names.R:15:3'): MCMC diagnostics produced even when names are not unique ──
  Expected `mcmc.diagnostics(fit)` to run without any conditions.
  i Actually got a <deprecatedWarning> with text:
    'is.R' is deprecated.
    See help("Deprecated")
  ── Failure ('test-predict.ergm.R:31:3'): predict.formula(conditional=FALSE) ────
  `... <- NULL` produced warnings.
  ── Failure ('test-target-offset.R:17:3'): target+offset in a non-curved ERGM ───
  `expect_error(mcmc.diagnostics(fit), NA)` threw an unexpected warning.
  Message: 'is.R' is deprecated.
  See help("Deprecated")
  Class:   deprecatedWarning/warning/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-target-offset.R:17:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─testthat::expect_error(mcmc.diagnostics(fit), NA)
    8. │ └─testthat:::expect_condition_matching(...)
    9. │   └─testthat:::quasi_capture(...)
   10. │     ├─testthat (local) .capture(...)
   11. │     │ └─base::withCallingHandlers(...)
   12. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   13. ├─ergm::mcmc.diagnostics(fit)
   14. ├─ergm:::mcmc.diagnostics.ergm(fit)
   15. │ ├─... %>% lapply.mcmc.list(`-`)
   16. │ ├─ergm::ergm.estfun(sm, theta = coef(object), model = object$etamap)
   17. │ └─ergm:::ergm.estfun.mcmc.list(sm, theta = coef(object), model = object$etamap)
   18. │   └─statnet.common::lapply.mcmc.list(stats, ergm.estfun, theta, model)
   19. │     ├─coda::as.mcmc.list(lapply(lapply(X, FUN, ...), as.mcmc))
   20. │     └─coda:::as.mcmc.list.default(lapply(lapply(X, FUN, ...), as.mcmc))
   21. │       └─coda::mcmc.list(x)
   22. │         └─base::is.R()
   23. │           └─base::.Deprecated()
   24. └─statnet.common::lapply.mcmc.list(., `-`)
   25.   ├─coda::as.mcmc.list(lapply(lapply(X, FUN, ...), as.mcmc))
   26.   ├─base::lapply(lapply(X, FUN, ...), as.mcmc)
   27.   └─base::lapply(X, FUN, ...)
  ── Failure ('test-target-offset.R:26:3'): target+offset in a curved ERGM ───────
  `expect_error(mcmc.diagnostics(fit), NA)` threw an unexpected warning.
  Message: 'is.R' is deprecated.
  See help("Deprecated")
  Class:   deprecatedWarning/warning/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-target-offset.R:26:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─testthat::expect_error(mcmc.diagnostics(fit), NA)
    8. │ └─testthat:::expect_condition_matching(...)
    9. │   └─testthat:::quasi_capture(...)
   10. │     ├─testthat (local) .capture(...)
   11. │     │ └─base::withCallingHandlers(...)
   12. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   13. ├─ergm::mcmc.diagnostics(fit)
   14. ├─ergm:::mcmc.diagnostics.ergm(fit)
   15. │ ├─... %>% lapply.mcmc.list(`-`)
   16. │ ├─ergm::ergm.estfun(sm, theta = coef(object), model = object$etamap)
   17. │ └─ergm:::ergm.estfun.mcmc.list(sm, theta = coef(object), model = object$etamap)
   18. │   └─statnet.common::lapply.mcmc.list(stats, ergm.estfun, theta, model)
   19. │     ├─coda::as.mcmc.list(lapply(lapply(X, FUN, ...), as.mcmc))
   20. │     └─coda:::as.mcmc.list.default(lapply(lapply(X, FUN, ...), as.mcmc))
   21. │       └─coda::mcmc.list(x)
   22. │         └─base::is.R()
   23. │           └─base::.Deprecated()
   24. └─statnet.common::lapply.mcmc.list(., `-`)
   25.   ├─coda::as.mcmc.list(lapply(lapply(X, FUN, ...), as.mcmc))
   26.   ├─base::lapply(lapply(X, FUN, ...), as.mcmc)
   27.   └─base::lapply(X, FUN, ...)
  
  [ FAIL 11 | WARN 9093 | SKIP 0 | PASS 3601 ]
  Error: Test failures
  Execution halted