Running ‘testthat.R’ [5m/18m]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(timeEL)
  > 
  > test_check("timeEL")
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 29 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-KMwithSE.R:32:5'): Check the internal Greenwood variance computation of KM against that of prodlim ──
  Error in `cbind(idxM, pidxM)`: cannot get data pointer of 'NULL' objects
  Backtrace:
       ▆
    1. └─prodlim::SimSurv(3000) at test-KMwithSE.R:32:5
    2.   └─prodlim::survModel()
    3.     └─lava::lvm(~eventtime + censtime)
    4.       ├─lava::`regression<-`(`*tmp*`, messages = messages, value = myvar)
    5.       └─lava:::`regression<-.lvm`(`*tmp*`, messages = messages, value = myvar)
    6.         └─lava::procformula(object, value, ...)
    7.           ├─lava::`exogenous<-`(...)
    8.           └─lava:::`exogenous<-.lvm`(...)
    9.             └─lava::reindex(x)
   10.               └─lava:::mat.lvm(x, res)
   11.                 └─base::cbind(idxM, pidxM)
  ── Error ('test-KaplanMeier.R:89:5'): Compare to km.ci results ─────────────────
  Error in `cbind(idxM, pidxM)`: cannot get data pointer of 'NULL' objects
  Backtrace:
       ▆
    1. └─prodlim::SimSurv(50) at test-KaplanMeier.R:89:5
    2.   └─prodlim::survModel()
    3.     └─lava::lvm(~eventtime + censtime)
    4.       ├─lava::`regression<-`(`*tmp*`, messages = messages, value = myvar)
    5.       └─lava:::`regression<-.lvm`(`*tmp*`, messages = messages, value = myvar)
    6.         └─lava::procformula(object, value, ...)
    7.           ├─lava::`exogenous<-`(...)
    8.           └─lava:::`exogenous<-.lvm`(...)
    9.             └─lava::reindex(x)
   10.               └─lava:::mat.lvm(x, res)
   11.                 └─base::cbind(idxM, pidxM)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 29 ]
  Error: Test failures
  Execution halted