Running ‘testthat.R’ [43s/40s]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(JointFPM)
  > 
  > test_check("JointFPM")
  Starting 2 test processes
  [ FAIL 2 | WARN 0 | SKIP 13 | PASS 24 ]
  
  ══ Skipped tests (13) ══════════════════════════════════════════════════════════
  • On CRAN (13): 'test-mean_no.R:2:3', 'test-mean_no.R:17:3',
    'test-JointFPM.R:2:3', 'test-JointFPM.R:22:3', 'test-JointFPM.R:42:3',
    'test-JointFPM.R:62:3', 'test-JointFPM.R:83:3',
    'test-predict.JointFPM.R:2:3', 'test-predict.JointFPM.R:78:3',
    'test-predict.JointFPM.R:103:3', 'test-predict.JointFPM.R:130:3',
    'test-predict.JointFPM.R:156:3', 'test-predict.JointFPM.R:496:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-test_dfs_JointFPM.R:2:3'): Stable output of test run ───────────
  Error in `UseMethod("logLik")`: no applicable method for 'logLik' applied to an object of class "c('stpm2', 'mle2')"
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(...) at test-test_dfs_JointFPM.R:2:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test-test_dfs_JointFPM.R:25:5'): Stable output of test run ──────────
  Error in `UseMethod("logLik")`: no applicable method for 'logLik' applied to an object of class "c('stpm2', 'mle2')"
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-test_dfs_JointFPM.R:23:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─JointFPM::test_dfs_JointFPM(...) at test-test_dfs_JointFPM.R:25:5
    5.   └─base::lapply(...)
    6.     └─JointFPM (local) FUN(X[[i]], ...)
    7.       └─JointFPM:::test_df(...)
    8.         ├─base::cbind(out, list(stats::AIC(model$model), stats::BIC(model$model)))
    9.         │ └─base::cbind(deparse.level, ...)
   10.         │   └─base::data.frame(..., check.names = FALSE)
   11.         ├─stats::AIC(model$model)
   12.         └─stats:::AIC.default(model$model)
   13.           └─stats (local) ll(object)
  
  [ FAIL 2 | WARN 0 | SKIP 13 | PASS 24 ]
  Error: Test failures
  Execution halted