Running ‘requireNamespaceTest.R’ [1s/1s]
  Running ‘testthat.R’ [235s/124s]
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-2025 Statnet Commons
  > ################################################################################
  > library(testthat)
  > library(ergm)
  Loading required package: network
  
  'network' 1.19.0 (2024-12-08), 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.9.0 (2025-06-09), 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 6 | WARN 0 | SKIP 0 | PASS 4240 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-miss.R:58:3'): directed network ────────────────────────────────
  Error: ergm_plot.mcmc.list() requires 'lattice' and 'latticeExtra' packages.
  Backtrace:
      ▆
   1. └─ergm (local) run.miss.test(y) at test-miss.R:58:3
   2.   ├─ergm::mcmc.diagnostics(mcmcfit) at test-miss.R:36:3
   3.   └─ergm:::mcmc.diagnostics.ergm(mcmcfit)
   4.     ├─base::print(...)
   5.     └─ergm::ergm_plot.mcmc.list(...)
  ── Error ('test-miss.R:65:3'): undirected Network ──────────────────────────────
  Error: ergm_plot.mcmc.list() requires 'lattice' and 'latticeExtra' packages.
  Backtrace:
      ▆
   1. └─ergm (local) run.miss.test(y) at test-miss.R:65:3
   2.   ├─ergm::mcmc.diagnostics(mcmcfit) at test-miss.R:36:3
   3.   └─ergm:::mcmc.diagnostics.ergm(mcmcfit)
   4.     ├─base::print(...)
   5.     └─ergm::ergm_plot.mcmc.list(...)
  ── Error ('test-miss.R:72:3'): Bipartite Undirected Network ────────────────────
  Error: ergm_plot.mcmc.list() requires 'lattice' and 'latticeExtra' packages.
  Backtrace:
      ▆
   1. └─ergm (local) run.miss.test(y) at test-miss.R:72:3
   2.   ├─ergm::mcmc.diagnostics(mcmcfit) at test-miss.R:36:3
   3.   └─ergm:::mcmc.diagnostics.ergm(mcmcfit)
   4.     ├─base::print(...)
   5.     └─ergm::ergm_plot.mcmc.list(...)
  ── 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 <simpleError> with text:
    ergm_plot.mcmc.list() requires 'lattice' and 'latticeExtra' packages.
  ── Failure ('test-target-offset.R:17:3'): target+offset in a non-curved ERGM ───
  `mcmc.diagnostics(fit)` threw an unexpected error.
  Message: ergm_plot.mcmc.list() requires 'lattice' and 'latticeExtra' packages.
  Class:   simpleError/error/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.   ├─base::print(...)
   16.   └─ergm::ergm_plot.mcmc.list(...)
  ── Failure ('test-target-offset.R:26:3'): target+offset in a curved ERGM ───────
  `mcmc.diagnostics(fit)` threw an unexpected error.
  Message: ergm_plot.mcmc.list() requires 'lattice' and 'latticeExtra' packages.
  Class:   simpleError/error/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.   ├─base::print(...)
   16.   └─ergm::ergm_plot.mcmc.list(...)
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 4240 ]
  Error: Test failures
  Execution halted