Package check result: OK Changes to worse in reverse depends: Package: hesim Check: tests New result: ERROR Running ‘testthat.R’ [22s/22s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(hesim) > > test_check("hesim") sample = 1 sample = 2 [ FAIL 5 | WARN 0 | SKIP 0 | PASS 1120 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-tpmatrix.R:232:3'): qmatrix.msm() works with factor covariates and 'newdata' is one row ── msm::qmatrix.msm(fit, newdata[1, , drop = FALSE], ci = "none") not equal to qmatrix(fit, newdata, uncertainty = "none")[, , 1]. target is msm.est, current is matrix ── Failure ('test-tpmatrix.R:242:3'): qmatrix.msm() works with factor covariates and 'newdata' is multiple rows ── msm::qmatrix.msm(fit, newdata[2, , drop = FALSE], ci = "none") not equal to qmatrix(fit, newdata, uncertainty = "none")[, , 2]. target is msm.est, current is matrix ── Failure ('test-tpmatrix.R:253:3'): qmatrix.msm() works with covariates that vary by transition ── msm::qmatrix.msm(fit, newdata[2, , drop = FALSE], ci = "none") not equal to qmatrix(fit, newdata, uncertainty = "none")[, , 2]. target is msm.est, current is matrix ── Failure ('test-tpmatrix.R:280:3'): qmatrix.msm() works with a hidden Markov model ── msm::qmatrix.msm(fith, covariates = list(acute = 0), ci = "none") not equal to ...[]. target is msm.est, current is matrix ── Failure ('test-tpmatrix.R:302:3'): qmatrix.msm() does not require 'newdata' if no covariates are included in the model. ── msm::qmatrix.msm(fit, ci = "none") not equal to qmatrix(fit, uncertainty = "none")[, , 1]. target is msm.est, current is matrix [ FAIL 5 | WARN 0 | SKIP 0 | PASS 1120 ] Error: Test failures Execution halted