Running ‘test-all.R’ [114s/136s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > #library(lavaSearch2)
  > suppressPackageStartupMessages(library("testthat"))
  > suppressPackageStartupMessages(library("nlme"))
  > suppressPackageStartupMessages(library("multcomp"))
  > suppressPackageStartupMessages(library("Matrix"))
  > test_check("lavaSearch2")
  Loading required package: lavaSearch2
  Loading required package: ggplot2
  Loading required package: lava
  
  Attaching package: 'lava'
  
  The following object is masked from 'package:ggplot2':
  
      vars
  
  The following object is masked from 'package:testthat':
  
      compare
  
  lavaSearch2 version 2.0.3
  - simulation 
  - multiple linear regression 
  - mixed model 
  - factor model 
  - two factor model 
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 228 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-coefType.R:140:1'): (code run outside of `test_that()`) ────────
  Error in `cbind(idxM, pidxM)`: cannot get data pointer of 'NULL' objects
  Backtrace:
      ▆
   1. └─lava::lvm(Y1 ~ 1) at test-coefType.R:140:1
   2.   ├─lava::`regression<-`(`*tmp*`, messages = messages, value = myvar)
   3.   └─lava:::`regression<-.lvm`(`*tmp*`, messages = messages, value = myvar)
   4.     └─lava::procformula(object, value, ...)
   5.       ├─lava::`intercept<-`(`*tmp*`, ys, value = char2num(xs[intpos[1]]))
   6.       └─lava:::`intercept<-.lvm`(`*tmp*`, ys, value = char2num(xs[intpos[1]]))
   7.         └─lava::reindex(object)
   8.           └─lava:::mat.lvm(x, res)
   9.             └─base::cbind(idxM, pidxM)
  ── Error ('test-previousBug.R:51:1'): (code run outside of `test_that()`) ──────
  Error in `cbind(idxM, pidxM)`: cannot get data pointer of 'NULL' objects
  Backtrace:
      ▆
   1. └─lava::lvm(G1 ~ 1, G2 ~ 1) at test-previousBug.R:51:1
   2.   ├─lava::`regression<-`(`*tmp*`, messages = messages, value = myvar)
   3.   └─lava:::`regression<-.lvm`(`*tmp*`, messages = messages, value = myvar)
   4.     └─lava::procformula(object, value, ...)
   5.       ├─lava::`intercept<-`(`*tmp*`, ys, value = char2num(xs[intpos[1]]))
   6.       └─lava:::`intercept<-.lvm`(`*tmp*`, ys, value = char2num(xs[intpos[1]]))
   7.         └─lava::reindex(object)
   8.           └─lava:::mat.lvm(x, res)
   9.             └─base::cbind(idxM, pidxM)
  ── Error ('test1-sCorrect-missingValues.R:115:5'): full information (issue lava) ──
  Error in `cbind(idxM, pidxM)`: cannot get data pointer of 'NULL' objects
  Backtrace:
       ▆
    1. ├─lava::estimate(m, data = dNA.wide, missing = TRUE) at test1-sCorrect-missingValues.R:115:5
    2. └─lava:::estimate.lvm(m, data = dNA.wide, missing = TRUE)
    3.   └─lava:::estimate.MAR(...)
    4.     ├─base::subset(Model(x), exogenous(x))
    5.     └─lava:::subset.lvm(Model(x), exogenous(x))
    6.       └─lava::lvm(vars)
    7.         ├─lava::addvar(res, myvar, messages = messages)
    8.         └─lava:::addvar.lvm(res, myvar, messages = messages)
    9.           └─lava::reindex(x)
   10.             └─lava:::mat.lvm(x, res)
   11.               └─base::cbind(idxM, pidxM)
  ── Error ('test1-sCorrect-missingValues.R:132:1'): (code run outside of `test_that()`) ──
  Error in `cbind(idxM, pidxM)`: cannot get data pointer of 'NULL' objects
  Backtrace:
       ▆
    1. ├─lava::estimate(m, dNA.wide, missing = TRUE) at test1-sCorrect-missingValues.R:132:1
    2. └─lava:::estimate.lvm(m, dNA.wide, missing = TRUE)
    3.   └─lava:::estimate.MAR(...)
    4.     ├─base::subset(Model(x), exogenous(x))
    5.     └─lava:::subset.lvm(Model(x), exogenous(x))
    6.       └─lava::lvm(vars)
    7.         ├─lava::addvar(res, myvar, messages = messages)
    8.         └─lava:::addvar.lvm(res, myvar, messages = messages)
    9.           └─lava::reindex(x)
   10.             └─lava:::mat.lvm(x, res)
   11.               └─base::cbind(idxM, pidxM)
  ── Error ('test1a-sCorrect-validObjects.R:46:1'): (code run outside of `test_that()`) ──
  Error in `cbind(idxM, pidxM)`: cannot get data pointer of 'NULL' objects
  Backtrace:
       ▆
    1. ├─lava::estimate(lvm(G ~ X1), data = d) at test1a-sCorrect-validObjects.R:46:1
    2. └─lava:::estimate.lvm(lvm(G ~ X1), data = d)
    3.   ├─base::do.call(...)
    4.   └─lava:::ordinal_estimate_hook(...)
    5.     ├─lava::`ordinal<-`(`*tmp*`, K = nlevels(y), value = i)
    6.     └─lava:::`ordinal<-.lvm`(`*tmp*`, K = nlevels(y), value = i)
    7.       ├─lava::ordinal(x, value, ...)
    8.       └─lava:::ordinal.lvm(x, value, ...)
    9.         ├─lava::`intfix<-`(`*tmp*`, var[i], NULL, value = 0)
   10.         └─lava:::`intfix<-.lvm`(`*tmp*`, var[i], NULL, value = 0)
   11.           ├─lava::`intercept<-`(`*tmp*`, ..., value = value)
   12.           └─lava:::`intercept<-.lvm`(`*tmp*`, ..., value = value)
   13.             └─lava::reindex(object)
   14.               └─lava:::mat.lvm(x, res)
   15.                 └─base::cbind(idxM, pidxM)
  ── Error ('test1c-sCorrect-ssc.R:223:1'): (code run outside of `test_that()`) ──
  Error in `cbind(idxM, pidxM)`: cannot get data pointer of 'NULL' objects
  Backtrace:
      ▆
   1. └─lava::lvm(...) at test1c-sCorrect-ssc.R:223:1
   2.   ├─lava::`regression<-`(`*tmp*`, messages = messages, value = myvar)
   3.   └─lava:::`regression<-.lvm`(`*tmp*`, messages = messages, value = myvar)
   4.     └─lava::procformula(object, value, ...)
   5.       ├─lava::`intercept<-`(...)
   6.       └─lava:::`intercept<-.lvm`(...)
   7.         └─lava::reindex(object)
   8.           └─lava:::mat.lvm(x, res)
   9.             └─base::cbind(idxM, pidxM)
  ── Error ('test1d-sCorrect-residuals2.R:117:1'): (code run outside of `test_that()`) ──
  Error in `cbind(idxM, pidxM)`: cannot get data pointer of 'NULL' objects
  Backtrace:
      ▆
   1. └─lava::lvm(...) at test1d-sCorrect-residuals2.R:117:1
   2.   ├─lava::`regression<-`(`*tmp*`, messages = messages, value = myvar)
   3.   └─lava:::`regression<-.lvm`(`*tmp*`, messages = messages, value = myvar)
   4.     └─lava::procformula(object, value, ...)
   5.       ├─lava::`intercept<-`(...)
   6.       └─lava:::`intercept<-.lvm`(...)
   7.         └─lava::reindex(object)
   8.           └─lava:::mat.lvm(x, res)
   9.             └─base::cbind(idxM, pidxM)
  ── Error ('test1d-sCorrect-summary2.R:103:1'): (code run outside of `test_that()`) ──
  Error in `cbind(idxM, pidxM)`: cannot get data pointer of 'NULL' objects
  Backtrace:
       ▆
    1. ├─lava::estimate(lvm(Y1[0:2] ~ X1 + 1 * X2), data = d) at test1d-sCorrect-summary2.R:103:1
    2. └─lava::lvm(Y1[0:2] ~ X1 + 1 * X2)
    3.   ├─lava::`regression<-`(`*tmp*`, messages = messages, value = myvar)
    4.   └─lava:::`regression<-.lvm`(`*tmp*`, messages = messages, value = myvar)
    5.     └─lava::procformula(object, value, ...)
    6.       ├─lava::`intercept<-`(...)
    7.       └─lava:::`intercept<-.lvm`(...)
    8.         └─lava::reindex(object)
    9.           └─lava:::mat.lvm(x, res)
   10.             └─base::cbind(idxM, pidxM)
  
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 228 ]
  Error: Test failures
  Execution halted