Running ‘testthat.R’ [138s/150s]
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(lnmixsurv)
  Loading required package: parsnip
  Loading required package: survival
  Loading required package: ggplot2
  > 
  > test_check("lnmixsurv")
  Failed with error:  'there is no package called 'plotly''
  Saving _problems/test-survival_ln_mixture_em-methods-25.R
  [ FAIL 1 | WARN 0 | SKIP 7 | PASS 50 ]
  
  ══ Skipped tests (7) ═══════════════════════════════════════════════════════════
  • On CRAN (7): 'test-join_empirical_hazard.R:4:1',
    'test-plot_fit_on_data.R:3:1', 'test-plot_fit_on_data.R:17:1',
    'test-plot_fit_on_data.R:31:1', 'test-plot_fit_on_data.R:39:1',
    'test-survival_ln_mixture-print-summary.R:1:1',
    'test-survival_ln_mixture_em-print-summary.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-survival_ln_mixture_em-methods.R:25:3'): plot function works when applied to model via EM algorithm ──
  Error in `UseMethod("snapshot_replay", x)`: no applicable method for 'snapshot_replay' applied to an object of class "recordedplot"
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(plot(mod1)) at test-survival_ln_mixture_em-methods.R:25:3
   2.   └─testthat:::expect_snapshot_(...)
   3.     ├─testthat:::with_is_snapshotting(...)
   4.     └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
   5.       ├─base::unlist(lapply(results, replay))
   6.       └─base::lapply(results, replay)
   7.         └─testthat (local) FUN(X[[i]], ...)
   8.           └─testthat:::snapshot_replay(x, state, transform = transform, cnd_class = cnd_class)
  
  [ FAIL 1 | WARN 0 | SKIP 7 | PASS 50 ]
  Error:
  ! Test failures.
  Execution halted