Package check result: OK Changes to worse in reverse depends: Package: tern.mmrm Check: tests New result: ERROR Running ‘testthat.R’ [24s/24s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > pkg_name <- "tern.mmrm" > if (requireNamespace("testthat", quietly = TRUE)) { + library(testthat) + library(vdiffr) + is_on_ci <- isTRUE(as.logical(Sys.getenv("CI"))) + if (is_on_ci) { + reporter <- MultiReporter$new(list( + CheckReporter$new() + )) + test_results <- test_check(pkg_name, reporter = reporter) + saveRDS(test_results, "unit_testing_results.rds") + } else { + reporter <- ParallelProgressReporter$new() + test_check(pkg_name, reporter = reporter) + } + } Loading required package: tern.mmrm Loading required package: tern Loading required package: rtables Loading required package: formatters Attaching package: 'formatters' The following object is masked from 'package:base': %||% Loading required package: magrittr Attaching package: 'magrittr' The following objects are masked from 'package:testthat': equals, is_less_than, not Attaching package: 'rtables' The following object is masked from 'package:utils': str ✔ | F W S OK | Context ⠋ [ FAIL 0 | WARN 0 | SKIP 0 | PASS 0 ] Starting up... ✔ | 31 | assert_data Attaching package: 'dplyr' The following object is masked from 'package:testthat': matches The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union mmrm() registered as emmeans extension ✔ | 40 | fit_mmrm [3.9s] ✔ | 4 | formula ✔ | 16 0 | g_mmrm [5.7s] ✔ | 10 | labels ✖ | 1 5 43 | lsmeans [1.5s] ──────────────────────────────────────────────────────────────────────────────── Error ('test-lsmeans.R:190:3'): h_get_average_visit_specs uses number of patients with any of the averaged visits as n Error in `refit_multiple_optimizers(fit = fit, control = control)`: No optimizer led to a successful model fit. Please try to use a different covariance structure or other covariates. Backtrace: ▆ 1. └─mmrm::mmrm(formula = FEV1 ~ AVISIT + ar1(AVISIT | USUBJID), data = small_dat) at test-lsmeans.R:190:3 2. └─mmrm::refit_multiple_optimizers(fit = fit, control = control) ──────────────────────────────────────────────────────────────────────────────── ✔ | 6 5 | subgroups [3.6s] ✔ | 4 0 | table_mmrmt01 [1.2s] ✔ | 6 30 | tabulate_mmrm [3.4s] ✔ | 5 | utils ✔ | 3 10 | covariance_plot ══ Results ═════════════════════════════════════════════════════════════════════ Duration: 20.5 s ── Skipped tests (40) ────────────────────────────────────────────────────────── • On CRAN (40): 'test-g_mmrm.R:30:3', 'test-g_mmrm.R:37:3', 'test-g_mmrm.R:44:3', 'test-g_mmrm.R:68:3', 'test-g_mmrm.R:77:3', 'test-g_mmrm.R:84:3', 'test-g_mmrm.R:91:3', 'test-g_mmrm.R:98:3', 'test-g_mmrm.R:105:3', 'test-g_mmrm.R:121:3', 'test-g_mmrm.R:128:3', 'test-g_mmrm.R:139:3', 'test-g_mmrm.R:164:3', 'test-g_mmrm.R:175:3', 'test-g_mmrm.R:188:3', 'test-g_mmrm.R:201:3', 'test-lsmeans.R:300:3', 'test-lsmeans.R:311:3', 'test-lsmeans.R:320:3', 'test-lsmeans.R:335:3', 'test-lsmeans.R:648:3', 'test-subgroups.R:110:3', 'test-subgroups.R:118:3', 'test-subgroups.R:131:3', 'test-subgroups.R:140:3', 'test-subgroups.R:163:3', 'test-subgroups.R:196:3', 'test-table_mmrmt01.R:41:3', 'test-table_mmrmt01.R:46:3', 'test-table_mmrmt01.R:51:3', 'test-table_mmrmt01.R:56:3', 'test-tabulate_mmrm.R:262:3', 'test-tabulate_mmrm.R:268:3', 'test-tabulate_mmrm.R:274:3', 'test-tabulate_mmrm.R:376:3', 'test-tabulate_mmrm.R:393:3', 'test-tabulate_mmrm.R:435:3', 'test_covariance_plot.R:109:3', 'test_covariance_plot.R:124:3', 'test_covariance_plot.R:139:3' ── Failed tests ──────────────────────────────────────────────────────────────── Error ('test-lsmeans.R:190:3'): h_get_average_visit_specs uses number of patients with any of the averaged visits as n Error in `refit_multiple_optimizers(fit = fit, control = control)`: No optimizer led to a successful model fit. Please try to use a different covariance structure or other covariates. Backtrace: ▆ 1. └─mmrm::mmrm(formula = FEV1 ~ AVISIT + ar1(AVISIT | USUBJID), data = small_dat) at test-lsmeans.R:190:3 2. └─mmrm::refit_multiple_optimizers(fit = fit, control = control) [ FAIL 1 | WARN 0 | SKIP 40 | PASS 178 ] Deleting unused snapshots: • subgroups/mmrm-forest-plot-with-customizations.svg • subgroups/mmrm-forest-plot.svg Error: Test failures Execution halted