Package check result: OK Changes to worse in reverse depends: Package: EQRN Check: whether package can be installed New result: ERROR Installation failed. Package: shrinkGPR Check: whether package can be installed New result: ERROR Installation failed. Package: survdnn Check: examples New result: 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 > > library(survival) Attaching package: ‘survival’ The following object is masked from ‘package:survdnn’: brier > data(veteran, package = "survival") Warning in data(veteran, package = "survival") : data set ‘veteran’ not found > mod <- survdnn(Surv(time, status) ~ + age + karno + celltype, data = veteran, epochs = 50, verbose = FALSE) Error in cpp_torch_float32() : Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Calls: survdnn ... -> -> -> cpp_torch_float32 Execution halted Package: survdnn Check: R code for possible problems New result: NOTE trying URL 'https://torch-cdn.mlverse.org/binaries/refs/heads/cran/v0.16.1/latest/lantern-0.16.1+cpu+x86_64-Linux.zip' Package: survdnn Check: tests New result: ERROR Running ‘testthat.R’ [5s/5s] 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) trying URL 'https://torch-cdn.mlverse.org/binaries/refs/heads/cran/v0.16.1/latest/lantern-0.16.1+cpu+x86_64-Linux.zip' Warning messages: 1: In utils::download.file(url = url, destfile = destfile) : cannot open URL 'https://torch-cdn.mlverse.org/binaries/refs/heads/cran/v0.16.1/latest/lantern-0.16.1%2Bcpu%2Bx86_64-Linux.zip': HTTP status was '403 Forbidden' 2: In file.remove(tmp) : cannot remove file '/home/hornik/tmp/scratch/Rtmpda8BIu/file34487355831d6f.zip', reason 'No such file or directory' > > test_check("survdnn") [ FAIL 4 | WARN 0 | SKIP 22 | PASS 0 ] ══ Skipped tests (22) ══════════════════════════════════════════════════════════ • 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' • torch::torch_is_installed() is not TRUE (1): 'test-losses.R:53: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:16: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:16: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:29: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:29: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:40: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:40:3 2. └─Tensor$new(data, dtype, device, requires_grad, pin_memory) 3. └─methods$initialize(NULL, NULL, ...) 4. └─torch:::torch_tensor_cpp(...) [ FAIL 4 | WARN 0 | SKIP 22 | PASS 0 ] Error: Test failures Execution halted Package: survdnn Check: whether startup messages can be suppressed New result: NOTE trying URL 'https://torch-cdn.mlverse.org/binaries/refs/heads/cran/v0.16.1/latest/lantern-0.16.1+cpu+x86_64-Linux.zip' It looks like this package (or a package it requires) has a startup message which cannot be suppressed: see ?packageStartupMessage. Package: survdnn Check: whether the namespace can be loaded with stated dependencies New result: NOTE trying URL 'https://torch-cdn.mlverse.org/binaries/refs/heads/cran/v0.16.1/latest/lantern-0.16.1+cpu+x86_64-Linux.zip' Warning in utils::download.file(url = url, destfile = destfile) : cannot open URL 'https://torch-cdn.mlverse.org/binaries/refs/heads/cran/v0.16.1/latest/lantern-0.16.1%2Bcpu%2Bx86_64-Linux.zip': HTTP status was '403 Forbidden' Warning in file.remove(tmp) : cannot remove file '/home/hornik/tmp/scratch/Rtmp82arVz/file33fd432eeed7b9.zip', reason 'No such file or directory' A namespace must be able to be loaded with just the base namespace loaded: otherwise if the namespace gets loaded by a saved object, the session will be unable to start. Probably some imports need to be declared in the NAMESPACE file.