Running ‘testthat.R’ [125s/193s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > ## * load packages
  > library(testthat)
  > library(LMMstar)
  Loading required package: nlme
  LMMstar version 0.4.0
  > 
  > library(lava)
  
  Attaching package: 'lava'
  
  The following object is masked from 'package:testthat':
  
      compare
  
  > library(nlme)
  > library(emmeans)
  > library(numDeriv)
  > library(data.table)
  > library(multcomp)
  Loading required package: mvtnorm
  Loading required package: survival
  Loading required package: TH.data
  Loading required package: MASS
  
  Attaching package: 'TH.data'
  
  The following object is masked from 'package:MASS':
  
      geyser
  
  > library(qqtest)
  
  Attaching package: 'qqtest'
  
  The following object is masked from 'package:MASS':
  
      bacteria
  
  > library(ggplot2)
  
  Attaching package: 'ggplot2'
  
  The following object is masked from 'package:lava':
  
      vars
  
  > 
  > ## * run tests
  > ## setwd("~/Documents/GitHub/LMMstar/tests/")
  > test_check("LMMstar")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (5)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-linear-regression.R:74:1): single variance parameter (ML) ─────
  logLik(e.lmm) not equal to as.double(logLik(e.lava)).
  1/1 mismatches
  [1] -62.9 - -0.908 == -61.9
  ── Failure (test-linear-regression.R:82:1): single variance parameter (ML) ─────
  logLik(e.lmm, p = newp) not equal to as.double(logLik(e.lava, p = newp.lava)).
  1/1 mismatches
  [1] -119 - -1.55 == -117
  ── Failure (test-linear-regression.R:131:1): single variance parameter (ML) ────
  as.double(GS0) not equal to as.double(GS).
  32/36 mismatches (average diff: 13.7)
  [1]  1.38e+00 -  6.91e+01 == -67.736
  [2] -5.54e-01 -  4.71e+00 ==  -5.268
  [3] -1.05e+00 -  1.66e+00 ==  -2.715
  [4]  1.38e+00 -  3.04e+01 == -29.030
  [5] -6.96e-13 -  1.66e+01 == -16.588
  [6]  8.93e-01 - -1.17e-10 ==   0.893
  [7] -5.54e-01 -  4.71e+00 ==  -5.268
  [8]  2.22e-01 -  6.49e+01 == -64.701
  [9]  4.22e-01 - -3.27e+00 ==   3.690
  ...
  
  [ FAIL 3 | WARN 0 | SKIP 5 | PASS 209 ]
  Error: Test failures
  Execution halted