Running ‘testthat.R’ [18s/48s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(cocoon)
  > 
  > test_check("cocoon")
  [ FAIL 15 | WARN 0 | SKIP 1 | PASS 274 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-format_statvalues.R:64:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-format_stats_lmerModLmerTest.R:55:3'): formatting lm linear models works properly ──
  format_stats(test_lmer2, "a") (`actual`) not equal to "_β_ = -0.103, SE = 0.310, _t_ = -0.333, _p_ = .748" (`expected`).
  
  `actual`:   "_β_ = -0.104, SE = 0.310, _t_ = -0.337, _p_ = .745"
  `expected`: "_β_ = -0.103, SE = 0.310, _t_ = -0.333, _p_ = .748"
  ── Failure ('test-format_stats_lmerModLmerTest.R:56:3'): formatting lm linear models works properly ──
  format_stats(test_lmer2, "a", digits = 2) (`actual`) not equal to "_β_ = -0.10, SE = 0.31, _t_ = -0.33, _p_ = .748" (`expected`).
  
  `actual`:   "_β_ = -0.10, SE = 0.31, _t_ = -0.34, _p_ = .745"
  `expected`: "_β_ = -0.10, SE = 0.31, _t_ = -0.33, _p_ = .748"
  ── Failure ('test-format_stats_lmerModLmerTest.R:57:3'): formatting lm linear models works properly ──
  format_stats(test_lmer2, "a", pdigits = 2) (`actual`) not equal to "_β_ = -0.103, SE = 0.310, _t_ = -0.333, _p_ = .75" (`expected`).
  
  `actual`:   "_β_ = -0.104, SE = 0.310, _t_ = -0.337, _p_ = .74"
  `expected`: "_β_ = -0.103, SE = 0.310, _t_ = -0.333, _p_ = .75"
  ── Failure ('test-format_stats_lmerModLmerTest.R:58:3'): formatting lm linear models works properly ──
  format_stats(test_lmer2, "a", pzero = TRUE) (`actual`) not equal to "_β_ = -0.103, SE = 0.310, _t_ = -0.333, _p_ = 0.748" (`expected`).
  
  `actual`:   "_β_ = -0.104, SE = 0.310, _t_ = -0.337, _p_ = 0.745"
  `expected`: "_β_ = -0.103, SE = 0.310, _t_ = -0.333, _p_ = 0.748"
  ── Failure ('test-format_stats_lmerModLmerTest.R:59:3'): formatting lm linear models works properly ──
  format_stats(test_lmer2, "a", full = FALSE) (`actual`) not equal to "_β_ = -0.103, _p_ = .748" (`expected`).
  
  `actual`:   "_β_ = -0.104, _p_ = .745"
  `expected`: "_β_ = -0.103, _p_ = .748"
  ── Failure ('test-format_stats_lmerModLmerTest.R:60:3'): formatting lm linear models works properly ──
  format_stats(test_lmer2, "a", italics = FALSE) (`actual`) not equal to "β = -0.103, SE = 0.310, t = -0.333, p = .748" (`expected`).
  
  `actual`:   "β = -0.104, SE = 0.310, t = -0.337, p = .745"
  `expected`: "β = -0.103, SE = 0.310, t = -0.333, p = .748"
  ── Failure ('test-format_stats_lmerModLmerTest.R:61:3'): formatting lm linear models works properly ──
  format_stats(test_lmer2, "a", type = "latex") (`actual`) not equal to "$\\beta$ = -0.103, SE = 0.310, $t$ = -0.333, $p$ = .748" (`expected`).
  
  `actual`:   "$\\beta$ = -0.104, SE = 0.310, $t$ = -0.337, $p$ = .745"
  `expected`: "$\\beta$ = -0.103, SE = 0.310, $t$ = -0.333, $p$ = .748"
  ── Failure ('test-format_stats_merMod.R:59:3'): formatting lm linear models works properly ──
  format_stats(test_lmer, term = "a") (`actual`) not equal to "_β_ = -0.103, SE = 0.310, _t_ = -0.333" (`expected`).
  
  `actual`:   "_β_ = -0.104, SE = 0.310, _t_ = -0.337"
  `expected`: "_β_ = -0.103, SE = 0.310, _t_ = -0.333"
  ── Failure ('test-format_stats_merMod.R:60:3'): formatting lm linear models works properly ──
  format_stats(test_lmer, "a", digits = 2) (`actual`) not equal to "_β_ = -0.10, SE = 0.31, _t_ = -0.33" (`expected`).
  
  `actual`:   "_β_ = -0.10, SE = 0.31, _t_ = -0.34"
  `expected`: "_β_ = -0.10, SE = 0.31, _t_ = -0.33"
  ── Failure ('test-format_stats_merMod.R:61:3'): formatting lm linear models works properly ──
  format_stats(test_lmer, "a", pdigits = 2) (`actual`) not equal to "_β_ = -0.103, SE = 0.310, _t_ = -0.333" (`expected`).
  
  `actual`:   "_β_ = -0.104, SE = 0.310, _t_ = -0.337"
  `expected`: "_β_ = -0.103, SE = 0.310, _t_ = -0.333"
  ── Failure ('test-format_stats_merMod.R:62:3'): formatting lm linear models works properly ──
  format_stats(test_lmer, "a", pzero = TRUE) (`actual`) not equal to "_β_ = -0.103, SE = 0.310, _t_ = -0.333" (`expected`).
  
  `actual`:   "_β_ = -0.104, SE = 0.310, _t_ = -0.337"
  `expected`: "_β_ = -0.103, SE = 0.310, _t_ = -0.333"
  ── Failure ('test-format_stats_merMod.R:63:3'): formatting lm linear models works properly ──
  format_stats(test_lmer, "a", full = FALSE) (`actual`) not equal to "_β_ = -0.103" (`expected`).
  
  `actual`:   "_β_ = -0.104"
  `expected`: "_β_ = -0.103"
  ── Failure ('test-format_stats_merMod.R:64:3'): formatting lm linear models works properly ──
  format_stats(test_lmer, "a", italics = FALSE) (`actual`) not equal to "β = -0.103, SE = 0.310, t = -0.333" (`expected`).
  
  `actual`:   "β = -0.104, SE = 0.310, t = -0.337"
  `expected`: "β = -0.103, SE = 0.310, t = -0.333"
  ── Failure ('test-format_stats_merMod.R:65:3'): formatting lm linear models works properly ──
  format_stats(test_lmer, "a", type = "latex") (`actual`) not equal to "$\\beta$ = -0.103, SE = 0.310, $t$ = -0.333" (`expected`).
  
  `actual`:   "$\\beta$ = -0.104, SE = 0.310, $t$ = -0.337"
  `expected`: "$\\beta$ = -0.103, SE = 0.310, $t$ = -0.333"
  ── Failure ('test-format_stats_merMod.R:66:3'): formatting lm linear models works properly ──
  format_stats(test_lmer, "a", type = "latex", dfs = "sub") (`actual`) not equal to "$\\beta$ = -0.103, SE = 0.310, $t$ = -0.333" (`expected`).
  
  `actual`:   "$\\beta$ = -0.104, SE = 0.310, $t$ = -0.337"
  `expected`: "$\\beta$ = -0.103, SE = 0.310, $t$ = -0.333"
  
  [ FAIL 15 | WARN 0 | SKIP 1 | PASS 274 ]
  Error: Test failures
  In addition: Warning messages:
  1: In optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
    convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
  2: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :
    Model failed to converge with max|grad| = 0.350361 (tol = 0.002, component 1)
  3: In optwrap(optimizer, devfun, getStart(start, rho$pp), lower = rho$lower,  :
    convergence code -2 from nloptwrap: NLOPT_INVALID_ARGS: Invalid arguments (e.g. lower bounds are bigger than upper bounds, an unknown algorithm was specified, etcetera).
  4: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :
    Model failed to converge with max|grad| = 0.350361 (tol = 0.002, component 1)
  Execution halted