* using log directory 'd:/Rcompile/CRANpkg/local/4.6/JointFPM.Rcheck' * using R Under development (unstable) (2025-09-03 r88788 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'JointFPM/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'JointFPM' version '1.3.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'JointFPM' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [3s] OK * checking loading without being on the library search path ... [3s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [8s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [5s] ERROR Running examples in 'JointFPM-Ex.R' failed The error most likely occurred in: > ### Name: test_dfs_JointFPM > ### Title: Tests DFs for JointFPMs. > ### Aliases: test_dfs_JointFPM > > ### ** Examples > > # Test different dfs > test_dfs_JointFPM(Surv(time = start, + time2 = stop, + event = event, + type = 'counting') ~ 1, + re_model = ~ pyridoxine + thiotepa, + ce_model = ~ pyridoxine + thiotepa, + re_indicator = "re", + ce_indicator = "ce", + dfs_ce = 1:3, + dfs_re = 2, + tvc_ce_terms = list(thiotepa = 1:2), + tvc_re_terms = list(pyridoxine = 2), + cluster = "id", + data = bladder1_stacked) Error in UseMethod("logLik") : no applicable method for 'logLik' applied to an object of class "c('stpm2', 'mle2')" Calls: test_dfs_JointFPM ... cbind -> data.frame -> -> AIC.default -> ll Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [48s] ERROR Running 'testthat.R' [48s] 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 * checking PDF version of manual ... [28s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 2 ERRORs