- using R Under development (unstable) (2026-06-06 r90114)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-16 (Debian 16.1.0-1) 16.1.0
GNU Fortran (Debian 16.1.0-1) 16.1.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-06-07 13:15:36 UTC
- checking for file ‘maicplus/DESCRIPTION’ ... OK
- this is package ‘maicplus’ version ‘0.1.2’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/1s] OK
- checking package namespace information ... OK
- checking package dependencies ... INFO
Packages suggested but not available for checking: 'survminer', 'flexsurv'
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘maicplus’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ 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/2s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the package can be unloaded cleanly ... [2s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/2s] OK
- checking loading without being on the library search path ... [2s/2s] OK
- checking whether startup messages can be suppressed ... [2s/2s] 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 ... [13s/16s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/2s] ERROR
Running examples in ‘maicplus-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: basic_kmplot2
> ### Title: Basic Kaplan Meier (KM) plot function using ggplot
> ### Aliases: basic_kmplot2
>
> ### ** Examples
>
> library(survival)
> data(adtte_sat)
> data(pseudo_ipd_sat)
>
> kmobj_A <- survfit(Surv(TIME, EVENT) ~ ARM,
+ data = adtte_sat,
+ conf.type = "log-log"
+ )
>
> kmobj_B <- survfit(Surv(TIME, EVENT) ~ ARM,
+ data = pseudo_ipd_sat,
+ conf.type = "log-log"
+ )
>
> kmlist <- list(kmobj_A = kmobj_A, kmobj_B = kmobj_B)
> kmlist_name <- c("A", "B")
>
> basic_kmplot2(kmlist, kmlist_name)
Error in basic_kmplot2(kmlist, kmlist_name) :
survminer package is required for this function
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [12s/14s] ERROR
Running ‘testthat.R’ [12s/14s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> pkg_name <- "maicplus"
> library(pkg_name, character.only = TRUE)
> testthat::test_check(pkg_name)
result pvalue
"-0.17[-0.61; 0.28]" "0.535"
NULL
NULL
NULL
NULL
Saving _problems/test-plot_km2-27.R
[ FAIL 1 | WARN 0 | SKIP 16 | PASS 85 ]
══ Skipped tests (16) ══════════════════════════════════════════════════════════
• On CRAN (16): 'test-maic_anchored.R:1:1', 'test-maic_anchored.R:69:1',
'test-maic_unanchored.R:1:1', 'test-maic_unanchored.R:164:1',
'test-matching.R:192:1', 'test-matching.R:220:1', 'test-matching.R:233:1',
'test-matching.R:261:1', 'test-plot_km.R:1:1', 'test-plot_km.R:32:1',
'test-plot_km.R:64:1', 'test-plot_km.R:96:1', 'test-plot_km.R:127:1',
'test-plot_km.R:167:1', 'test-plot_km.R:206:1', 'test-plot_km.R:235:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-plot_km2.R:11:7'): kmplot2 works ───────────────────────────────
Error in `kmplot2(weights_object = weighted_twt, tte_ipd = adtte_twt, tte_pseudo_ipd = pseudo_ipd_twt, trt_ipd = "A", trt_agd = "B", trt_common = "C", trt_var_ipd = "ARM", trt_var_agd = "ARM", endpoint_name = "Overall Survival", km_conf_type = "log-log", km_layout = "by_trial", time_scale = "month", break_x_by = 2)`: survminer package is required for this function
Backtrace:
▆
1. └─vdiffr::expect_doppelganger(...) at test-plot_km2.R:8:3
2. └─vdiffr (local) writer(fig, testcase, title)
3. ├─vdiffr:::print_plot(plot, title)
4. └─vdiffr:::print_plot.function(plot, title)
5. └─maicplus (local) p()
6. ├─base::suppressWarnings(...) at test-plot_km2.R:11:7
7. │ └─base::withCallingHandlers(...)
8. └─maicplus::kmplot2(...)
[ FAIL 1 | WARN 0 | SKIP 16 | PASS 85 ]
Deleting unused snapshots: 'plot_km2/kmplot2-all.svg',
'plot_km2/kmplot2-by-am.svg', and 'plot_km2/kmplot2-normalize-by-trial.svg'
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [26s/38s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘anchored_binary.Rmd’ using rmarkdown
--- finished re-building ‘anchored_binary.Rmd’
--- re-building ‘anchored_survival.Rmd’ using rmarkdown
--- finished re-building ‘anchored_survival.Rmd’
--- re-building ‘calculating_weights.Rmd’ using rmarkdown
--- finished re-building ‘calculating_weights.Rmd’
--- re-building ‘introduction.Rmd’ using rmarkdown
--- finished re-building ‘introduction.Rmd’
--- re-building ‘kaplan_meier_plots.Rmd’ using rmarkdown
Quitting from kaplan_meier_plots.Rmd:30-32 [unnamed-chunk-3]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `library()`:
! there is no package called 'survminer'
---
Backtrace:
▆
1. └─base::library(survminer)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'kaplan_meier_plots.Rmd' failed with diagnostics:
there is no package called 'survminer'
--- failed re-building ‘kaplan_meier_plots.Rmd’
--- re-building ‘unanchored_binary.Rmd’ using rmarkdown
--- finished re-building ‘unanchored_binary.Rmd’
--- re-building ‘unanchored_survival.Rmd’ using rmarkdown
--- finished re-building ‘unanchored_survival.Rmd’
SUMMARY: processing the following file failed:
‘kaplan_meier_plots.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [1s/1s] ERROR
Rd conversion errors:
Converting parsed Rd's to LaTeX ...Warning in file(out, "wt") :
cannot open file '/tmp/Rtmpea3MYE/ltx34454c604eeb2b/pseudo_ipd_twt.tex': No space left on device
Error in file(out, "wt") : cannot open the connection
- checking HTML version of manual ... [3s/5s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 4 ERRORs