* using log directory ‘/data/localhost/ripley/R/packages/tests-donttest/mets.Rcheck’ * using R Under development (unstable) (2026-12-01 r91013) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) GNU Fortran (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3) * running under: Fedora Linux 44 (Server Edition) * using session charset: UTF-8 * current time: 2026-12-01 14:11:52 UTC * checking for file ‘mets/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘mets’ version ‘1.3.12’ * 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 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 ‘mets’ can be installed ... [110s/95s] OK * used C compiler: ‘gcc (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3)’ * used Fortran compiler: ‘GNU Fortran (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3)’ * used C++ compiler: ‘g++ (GCC) 16.2.1 20261029 (Red Hat 16.2.1-3)’ * checking package directory ... 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking whether startup messages can be suppressed ... 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 ... [31s/35s] OK * checking Rd files ... 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 ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking usage of KIND in Fortran files ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [18s/20s] OK * checking examples with --run-donttest ... [28s/31s] ERROR Running examples in ‘mets-Ex.R’ failed The error most likely occurred in: > ### Name: survivalG > ### Title: G-Estimator for Cox and Fine-Gray Models > ### Aliases: survivalG survivalGtime > > ### ** Examples > > data(bmt) > bmt$time <- bmt$time + runif(408) * 0.001 > bmt$event <- (bmt$cause != 0) * 1 > bmt$id <- 1:408 > dfactor(bmt) <- tcell.f ~ tcell > > # Fine-Gray model > fg1 <- cifregFG(Event(time, cause) ~ tcell.f + platelet + age, bmt, + cause = 1, cox.prep = TRUE) > summary(survivalG(fg1, bmt, 50)) G-estimator : Estimate Std.Err 2.5% 97.5% P-value risk0 0.4331 0.02749 0.3793 0.4870 6.357e-56 risk1 0.2726 0.05862 0.1577 0.3875 3.310e-06 Average Treatment effect: difference (G-estimator) : Estimate Std.Err 2.5% 97.5% P-value ps0 -0.1605 0.06352 -0.285 -0.03604 0.01149 Average Treatment effect: ratio (G-estimator) : log-ratio: Estimate Std.Err 2.5% 97.5% P-value ps0 -0.4629963 0.2211989 -0.8965383 -0.02945433 0.0363383 ratio: Estimate 2.5% 97.5% 0.6293950 0.4079795 0.9709752 > > ## No test: > ## Reduce Ex.Timings > # Cox model > ss <- phreg(Surv(time, event) ~ tcell.f + platelet + age, bmt) > summary(survivalG(ss, bmt, 50)) G-estimator : Estimate Std.Err 2.5% 97.5% P-value risk0 0.6539 0.02709 0.6008 0.7070 9.834e-129 risk1 0.5640 0.05972 0.4470 0.6811 3.585e-21 Average Treatment effect: difference (G-estimator) : Estimate Std.Err 2.5% 97.5% P-value ps0 -0.08988 0.06292 -0.2132 0.03344 0.1532 Average Treatment effect: ratio (G-estimator) : log-ratio: Estimate Std.Err 2.5% 97.5% P-value ps0 -0.1478605 0.1095509 -0.3625763 0.06685525 0.1771131 ratio: Estimate 2.5% 97.5% 0.8625514 0.6958812 1.0691407 Average Treatment effect: survival-difference (G-estimator) : Estimate Std.Err 2.5% 97.5% P-value ps0 0.08987952 0.0629202 -0.03344181 0.2132009 0.1531571 Average Treatment effect: 1-G (survival)-ratio (G-estimator) : log-ratio: Estimate Std.Err 2.5% 97.5% P-value ps0 0.2308757 0.1504267 -0.06395524 0.5257067 0.1248317 ratio: Estimate 2.5% 97.5% 1.259703 0.938047 1.691654 > > # Stratified Cox model > ss <- phreg(Surv(time, event) ~ strata(tcell.f) + platelet + age, bmt) > summary(survivalG(ss, bmt, 50)) G-estimator : Estimate Std.Err 2.5% 97.5% P-value risk0 0.6441 0.02728 0.5907 0.6976 2.803e-123 risk1 0.6172 0.07125 0.4776 0.7568 4.601e-18 Average Treatment effect: difference (G-estimator) : Estimate Std.Err 2.5% 97.5% P-value ps0 -0.02694 0.07622 -0.1763 0.1224 0.7237 Average Treatment effect: ratio (G-estimator) : log-ratio: Estimate Std.Err 2.5% 97.5% P-value ps0 -0.04272943 0.1228509 -0.2835127 0.1980539 0.7279789 ratio: Estimate 2.5% 97.5% 0.9581706 0.7531335 1.2190281 Average Treatment effect: survival-difference (G-estimator) : Estimate Std.Err 2.5% 97.5% P-value ps0 0.02694438 0.0762222 -0.1224484 0.1763371 0.7237152 Average Treatment effect: 1-G (survival)-ratio (G-estimator) : log-ratio: Estimate Std.Err 2.5% 97.5% P-value ps0 0.07298861 0.201101 -0.3211621 0.4671394 0.716646 ratio: Estimate 2.5% 97.5% 1.0757183 0.7253056 1.5954237 > > # Time-varying G-estimates > sst <- survivalGtime(ss, bmt, n = 50) Warning in log((1 - p[-1])/(1 - p[1])) : NaNs produced Warning in log((1 - p[-1])/(1 - p[1])) : NaNs produced Warning in log((1 - p[-1])/(1 - p[1])) : NaNs produced Warning in log((1 - p[-1])/(1 - p[1])) : NaNs produced Error in estimate.default(coef = Grisk, vcov = vv, f = function(p) log((1 - : Numerical Jacobian contains non-finite values; adjust lava.options()$Dmethod.args (see numDeriv::grad) Calls: survivalGtime -> survivalG -> estimate -> estimate.default Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘tinytest.R’ OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [20s/26s] OK * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 1 ERROR See ‘/data/localhost/ripley/R/packages/tests-donttest/mets.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 7:07.52, 271.95 + 126.02