philips-software / latrend

An R package for clustering longitudinal datasets in a standardized way, providing interfaces to various R packages for longitudinal clustering, and facilitating the rapid implementation and evaluation of new methods
https://philips-software.github.io/latrend/
GNU General Public License v2.0
28 stars 5 forks source link

CRAN error due to lcmm test #123

Closed niekdt closed 2 years ago

niekdt commented 2 years ago

One of the lcmm tests is failing on R-devel due to the result having empty clusters.

══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-lcmm.R:35:3): gmm ───────────────────────────────────────────────
  Error in `test.latrend("lcMethodLcmmGMM", instantiator = make.gmm, tests = tests, 
      data = lcmmData)`: 
  Found 1 error(s) among 1 test context(s)
  Failed tests:
    cluster-three: trajectoryAssignments.uniqueN
  For details, see the respective test files in:
    "/data/gannet/ripley/R/packages/tests-noLD/latrend.Rcheck/latrend/test-cases"
  Backtrace:
      ▆
   1. ├─testthat::expect_true(...) at test-lcmm.R:35:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─latrend::test.latrend(...) at test-lcmm.R:36:4
  ── Error (test-lcmm.R:55:3): gmm with NA covariate ─────────────────────────────
  Error in `test.latrend("lcMethodLcmmGMM", instantiator = make.gmm, tests = tests, 
      data = lcmmData)`: 
  Found 1 error(s) among 1 test context(s)
  Failed tests:
    cluster-three: trajectoryAssignments.uniqueN
  For details, see the respective test files in:
    "/data/gannet/ripley/R/packages/tests-noLD/latrend.Rcheck/latrend/test-cases"
  Backtrace:
      ▆
   1. ├─testthat::expect_true(...) at test-lcmm.R:55:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─latrend::test.latrend(...) at test-lcmm.R:56:4
niekdt commented 2 years ago

Unable to reproduce the error