Running ‘testthat.R’ [58s/70s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > 
  > test_check("btergm")
  Loading required package: btergm
  Registered S3 methods overwritten by 'btergm':
    method    from
    plot.gof  ergm
    print.gof ergm
  Package:  btergm
  Version:  1.11.1
  Date:     2025-03-19
  Authors:  Philip Leifeld (University of Manchester)
            Skyler J. Cranmer (The Ohio State University)
            Bruce A. Desmarais (Pennsylvania State University)
  
  [ FAIL 1 | WARN 0 | SKIP 11 | PASS 51 ]
  
  ══ Skipped tests (11) ══════════════════════════════════════════════════════════
  • On CRAN (11): 'test-btergm.R:74:3', 'test-btergm.R:173:3',
    'test-btergm.R:190:3', 'test-data.R:4:3', 'test-gof.R:64:3',
    'test-gof.R:211:3', 'test-gof.R:270:3', 'test-interpret.R:4:3',
    'test-interpret.R:32:3', 'test-interpret.R:59:3', 'test-interpret.R:87:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-gof.R:60:3'): checkdegeneracy works with btergm and mtergm ─────
  Error: ergm_plot.mcmc.list() requires 'lattice' and 'latticeExtra' packages.
  Backtrace:
       ▆
    1. ├─testthat::expect_output(checkdegeneracy(fit2), "Sample statistics summary") at test-gof.R:60:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. ├─btergm::checkdegeneracy(fit2)
   11. └─btergm::checkdegeneracy(fit2)
   12.   ├─ergm::mcmc.diagnostics(object@ergm, ...)
   13.   └─ergm:::mcmc.diagnostics.ergm(object@ergm, ...)
   14.     ├─base::print(...)
   15.     └─ergm::ergm_plot.mcmc.list(...)
  
  [ FAIL 1 | WARN 0 | SKIP 11 | PASS 51 ]
  Error: Test failures
  Execution halted