* using log directory 'd:/RCompile/CRANincoming/R-devel/survdnn.Rcheck' * using R Under development (unstable) (2025-10-28 r88973 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 'survdnn/DESCRIPTION' ... OK * this is package 'survdnn' version '0.6.2' * package encoding: UTF-8 * checking CRAN incoming feasibility ... [16s] OK * 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 'survdnn' can be installed ... WARNING Found the following significant warnings: Warning: Torch libraries are installed but loading them caused a segfault. See 'd:/RCompile/CRANincoming/R-devel/survdnn.Rcheck/00install.out' for details. * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... 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 ... [29s] 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 examples ... ERROR Running examples in 'survdnn-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: brier > ### Title: Brier Score for Right-Censored Survival Data at a Fixed Time > ### Aliases: brier > > ### ** Examples > > if (torch::torch_is_installed()) { + library(survival) + data(veteran, package = "survival") + mod <- survdnn(Surv(time, status) ~ + age + karno + celltype, data = veteran, epochs = 50, verbose = FALSE) + pred <- predict(mod, newdata = veteran, type = "survival", times = c(30, 90, 180)) + y <- model.response(model.frame(mod$formula, veteran)) + survdnn::brier(y, pre_sp = pred[["t=90"]], t_star = 90) + } Attaching package: 'survival' The following object is masked from 'package:survdnn': brier Warning in data(veteran, package = "survival") : data set 'veteran' not found Error in cpp_torch_float32() : Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Calls: survdnn ... -> -> -> cpp_torch_float32 Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... ERROR Running 'testthat.R' 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(survdnn) Warning message: Torch libraries are installed but loading them caused a segfault. Please reinstall torch with `install_torch(reinstall = TRUE)` You can disable this check by setting `TORCH_VERIFY_LOAD` to "FALSE" ! callr subprocess failed: could not start R, exited with non-zero status, has crashed or was killed > > test_check("survdnn") [ FAIL 5 | WARN 0 | SKIP 21 | PASS 0 ] ══ Skipped tests (21) ══════════════════════════════════════════════════════════ • On CRAN (21): 'test-cv_survdnn.R:2:3', 'test-cv_survdnn.R:25:3', 'test-evaluate_survdnn.R:2:3', 'test-evaluate_survdnn.R:21:3', 'test-metrics.R:2:3', 'test-metrics.R:20:3', 'test-metrics.R:38:3', 'test-metrics.R:56:3', 'test-plot.survdnn.R:2:3', 'test-plot.survdnn.R:15:3', 'test-plot.survdnn.R:32:3', 'test-predict.survdnn.R:2:3', 'test-predict.survdnn.R:17:3', 'test-predict.survdnn.R:35:3', 'test-predict.survdnn.R:50:3', 'test-print.survdnn.R:2:3', 'test-summary.survdnn.R:2:3', 'test-survdnn.R:2:3', 'test-tune_survdnn.R:2:3', 'test-tune_survdnn.R:62:3', 'test-tune_survdnn.R:92:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-losses.R:5:3'): cox_loss returns scalar tensor ───────────────── Error in `torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory)`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Backtrace: ▆ 1. └─torch::torch_tensor(runif(20, 1, 100)) at test-losses.R:5:3 2. └─Tensor$new(data, dtype, device, requires_grad, pin_memory) 3. └─methods$initialize(NULL, NULL, ...) 4. └─torch:::torch_tensor_cpp(...) ── Error ('test-losses.R:18:3'): cox_l2_loss returns penalized scalar tensor ─── Error in `torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory)`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Backtrace: ▆ 1. └─torch::torch_tensor(runif(20, 1, 100)) at test-losses.R:18:3 2. └─Tensor$new(data, dtype, device, requires_grad, pin_memory) 3. └─methods$initialize(NULL, NULL, ...) 4. └─torch:::torch_tensor_cpp(...) ── Error ('test-losses.R:33:3'): aft_loss returns scalar tensor (uncensored only) ── Error in `torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory)`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Backtrace: ▆ 1. └─torch::torch_tensor(runif(20, 1, 100)) at test-losses.R:33:3 2. └─Tensor$new(data, dtype, device, requires_grad, pin_memory) 3. └─methods$initialize(NULL, NULL, ...) 4. └─torch:::torch_tensor_cpp(...) ── Error ('test-losses.R:46:3'): aft_loss returns 0 for fully censored data ──── Error in `torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory)`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Backtrace: ▆ 1. └─torch::torch_tensor(runif(10, 1, 100)) at test-losses.R:46:3 2. └─Tensor$new(data, dtype, device, requires_grad, pin_memory) 3. └─methods$initialize(NULL, NULL, ...) 4. └─torch:::torch_tensor_cpp(...) ── Error ('test-losses.R:62:3'): coxtime_loss implements partial likelihood faithfully ── Error in `(function (size, options) { .Call(`_torch_cpp_torch_namespace_randn_size_IntArrayRef`, size, options) })(size = c(50, 1), options = list(dtype = NULL, layout = NULL, device = NULL, requires_grad = FALSE))`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Backtrace: ▆ 1. └─torch::torch_randn(c(n, 1)) at test-losses.R:62:3 2. ├─base::do.call(.torch_randn, args) 3. └─torch (local) ``(options = ``, size = ``) 4. └─torch:::call_c_function(...) 5. └─torch:::do_call(f, args) 6. ├─base::do.call(fun, args) 7. └─torch (local) ``(size = ``, options = ``) [ FAIL 5 | WARN 0 | SKIP 21 | PASS 0 ] Error: Test failures Execution halted * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... OK * DONE Status: 2 ERRORs, 1 WARNING