* using log directory ‘/srv/hornik/tmp/CRAN_pretest/xhaz.Rcheck’ * using R Under development (unstable) (2026-01-25 r89330) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 21.1.8 (1+b1) Debian flang version 21.1.8 (1+b1) * running under: Debian GNU/Linux forky/sid * using session charset: UTF-8 * checking for file ‘xhaz/DESCRIPTION’ ... OK * this is package ‘xhaz’ version ‘2.1.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [4s/7s] NOTE Maintainer: ‘Juste Goungounga ’ No Authors@R field in DESCRIPTION. Please add one, modifying Authors@R: c(person(given = "Juste", family = "Goungounga", role = c("aut", "cre"), email = "juste.goungounga@ehesp.fr", comment = c(ORCID = "0000-0002-9039-2639")), person(given = "Hadrien", family = "Charvat", role = "aut", comment = c(ORCID = "0000-0003-3624-1394")), person(given = "Darlin", family = "Mba", role = "aut", comment = c(ORCID = "0000-0001-9768-0230")), person(given = "Nathalie", family = "Graffeo", role = "aut", comment = c(ORCID = "0000-0001-7227-7525")), person(given = "Roch", family = "Giorgi", role = "aut", comment = c(ORCID = "0000-0001-6135-3078"))) as necessary. * 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 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 ‘xhaz’ can be installed ... [7s/7s] OK * 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 ... [1s/1s] OK * checking whether the package can be loaded with stated dependencies ... [1s/1s] OK * checking whether the package can be unloaded cleanly ... [1s/1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK * checking whether the namespace can be unloaded cleanly ... [1s/1s] OK * checking loading without being on the library search path ... [1s/1s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... NOTE ':::' call which should be '::': ‘survival:::untangle.specials’ See the note in ?`:::` about the use of this operator. * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [16s/16s] NOTE plot.predxhaz_list: no visible global function definition for ‘par’ plot.predxhaz_list: no visible global function definition for ‘layout’ plot.predxhaz_list: no visible global function definition for ‘plot.new’ plot.predxhaz_list : draw_panel: no visible global function definition for ‘par’ Undefined global functions or variables: layout par plot.new Consider adding importFrom("graphics", "layout", "par", "plot.new") to your NAMESPACE file. * checking Rd files ... [0s/0s] 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 ... WARNING Undocumented arguments in Rd file 'as.predxhaz.Rd' ‘x’ ‘...’ Undocumented arguments in Rd file 'plot.predxhaz.Rd' ‘step’ Documented arguments not in \usage in Rd file 'plot.predxhaz.Rd': ‘grid’ Functions with \usage entries need to have the appropriate \alias entries, and all their arguments documented. The \usage entries must correspond to syntactically valid R code. See chapter ‘Writing R documentation files’ in the ‘Writing R Extensions’ manual. * 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 ... [1s/1s] ERROR Running examples in ‘xhaz-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: AIC.constant > ### Title: Akaike's Information Criterion for excess hazard model with > ### baseline hazard following a piecewise constant function > ### Aliases: AIC.constant > ### Keywords: internal > > ### ** Examples > > library("xhaz") > > # Esteve et al. model: baseline excess hazard is a piecewise function > # linear and proportional effects for the covariates on > # baseline excess hazard. > > > set.seed(1980) > simuData2 <- simuData[sample(nrow(simuData), size = 500), ] > > fit.estv2 <- xhaz(formula = Surv(time_year, status) ~ agec + race, + data = simuData2, + ratetable = survexp.us, + interval = c(0, NA, NA, NA, NA, NA, 6), + rmap = list(age = 'age', sex = 'sex', year = 'date'), + baseline = "constant", pophaz = "classic") Error in Surv(time_year, status) : could not find function "Surv" Calls: xhaz ... eval -> model.frame -> model.frame.default -> eval -> eval Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [2s/2s] ERROR Running ‘spelling.R’ [0s/0s] Running ‘testthat.R’ [1s/1s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(xhaz) > > test_check("xhaz") Saving _problems/test-as-xhaz-5.R [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-as-xhaz.R:5:3'): as.xhaz puts 'xhaz' first and preserves other classes ── Error in `expect_class_first(y, "xhaz")`: could not find function "expect_class_first" [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [15s/16s] OK * checking PDF version of manual ... [4s/4s] OK * checking HTML version of manual ... [2s/2s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs, 1 WARNING, 3 NOTEs