Running ‘testthat.R’ [26s/32s]
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.10.6
  Date:     2022-04-01
  Authors:  Philip Leifeld (University of Essex)
            Skyler J. Cranmer (The Ohio State University)
            Bruce A. Desmarais (Pennsylvania State University)
  
  [ FAIL 4 | WARN 4 | SKIP 5 | PASS 33 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (5)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-btergm.R:149'): mtergm estimation works ────────────────────────
  Error in `if (has_new_tergm()) check_dots_used(error = unused_dots_warning)`: missing value where TRUE/FALSE needed
  Backtrace:
       ▆
    1. └─btergm::mtergm(...) at test-btergm.R:149:2
    2.   ├─base::suppressMessages(...)
    3.   │ └─base::withCallingHandlers(...)
    4.   └─ergm::ergm(...)
    5.     ├─stats::logLik(...)
    6.     └─ergm:::logLik.ergm(...)
    7.       ├─base::with(...)
    8.       └─base::with.default(...)
    9.         └─base::eval(substitute(expr), data, enclos = parent.frame())
   10.           └─base::eval(substitute(expr), data, enclos = parent.frame())
   11.             └─ergm::ergm.bridge.dindstart.llk(...)
   12.               └─ergm::ergm.bridge.llr(...)
   13.                 ├─stats::simulate(...)
   14.                 ├─ergm:::simulate.formula(...)
   15.                 │ └─base::eval(cl, parent.frame())
   16.                 │   └─base::eval(cl, parent.frame())
   17.                 ├─stats::simulate(...)
   18.                 └─ergm:::simulate.formula_lhs_network(...)
   19.                   ├─ergm::simulate_formula(...)
   20.                   └─ergm (local) simulate_formula.network(...)
  ── Error ('test-btergm.R:162'): simulation of new networks works ───────────────
  Error in `if (has_new_tergm()) check_dots_used(error = unused_dots_warning)`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─stats::simulate(fit1, 5, verbose = FALSE) at test-btergm.R:162:2
   2. └─btergm:::simulate.btergm(fit1, 5, verbose = FALSE)
   3.   ├─ergm::simulate_formula(...)
   4.   └─ergm (local) simulate_formula.network(...)
  ── Error ('test-gof.R:22'): basic GOF functionality works ──────────────────────
  Error in `if (grep("elements, while the model requires", as.character(e))) {
      message("Error: The number of ERGM coefficients does not correspond to the number of parameters the simulation function is expecting. This can occur if you employ curved model terms, such as gwesp, gwdegree etc., without explicitly adding ', fixed = TRUE' to the model term, for example '+ gwesp(0.5, fixed = TRUE). The MPLE-based estimation strategy currently does not permit curved terms (i.e., the parameters must be fixed). Please add ', fixed = TRUE' to the respective model term(s) while estimating the model and then use the gof function again. The original error message from the ergm package will follow.")
      stop(e)
  } else {
      message("Error: Could not simulate any networks. Original error message follows.")
      stop(e)
  }`: argument is of length zero
  Backtrace:
      ▆
   1. ├─btergm::gof(...) at test-gof.R:22:2
   2. └─btergm::gof(...)
   3.   └─btergm (local) .local(object, ...)
   4.     └─base::tryCatch(...)
   5.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.           └─value[[3L]](cond)
  ── Error ('test-gof.R:123'): checkdegeneracy works with btergm and mtergm ──────
  Error in `if (has_new_tergm()) check_dots_used(error = unused_dots_warning)`: missing value where TRUE/FALSE needed
  Backtrace:
      ▆
   1. ├─btergm::checkdegeneracy(fit) at test-gof.R:123:2
   2. └─btergm::checkdegeneracy(fit)
   3.   └─btergm (local) .local(object, ...)
   4.     ├─ergm::simulate_formula(...)
   5.     └─ergm (local) simulate_formula.network(...)
  
  [ FAIL 4 | WARN 4 | SKIP 5 | PASS 33 ]
  Error: Test failures
  Execution halted