* using log directory ‘/srv/hornik/tmp/CRAN_pretest/NNMoMo.Rcheck’ * using R Under development (unstable) (2025-10-16 r88927) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.7 (7) Debian flang-new version 19.1.7 (7) * running under: Debian GNU/Linux forky/sid * using session charset: UTF-8 * checking for file ‘NNMoMo/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘NNMoMo’ version ‘0.1.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [3s/3s] NOTE Maintainer: ‘Daniel Herzog ’ New submission Possibly misspelled words in DESCRIPTION: StMoMo (3:36, 7:41, 7:352) demogdata (7:214) No Authors@R field in DESCRIPTION. Please add one, modifying Authors@R: person(given = "Daniel", family = "Herzog", role = c("aut", "cre"), email = "studium.daniel.herzog@gmail.com") 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 ‘NNMoMo’ can be installed ... [8s/8s] 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 ... [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 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 ... [10s/10s] OK * 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 ... 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 ... [4s/4s] ERROR Running examples in ‘NNMoMo-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: fit.NNMoMo > ### Title: Fit a Neural Network Lee-Carter Model > ### Aliases: fit.NNMoMo > > ### ** Examples > > # Example: fitting with random data, do not expect to get > # any meaningful results. > > # creating example data for fitting: > demography_obj <- demography::demogdata( + data = matrix(runif(10*5), nrow = 10), + pop = matrix(runif(10*5, 1000, 2000), nrow = 10), + ages = 50:59, + years = 2000:2004, + type = "mortality", + name = "male", + label = "France" + ) > nn_data <- NNMoMoData(demography_obj) > > # fitting the data in 10 epochs (in practice, many more epochs are needed): > fit <- fit(object = lcNN(), + data = nn_data, + fitting.epochs = 10) Error in torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory) : Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Calls: fit ... -> -> -> torch_tensor_cpp Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [3s/3s] OK Running ‘testthat.R’ [3s/3s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [4s/4s] ERROR Error(s) in re-building vignettes: ... --- re-building ‘NNMoMoVignette.Rmd’ using rmarkdown Quitting from NNMoMoVignette.Rmd:70-82 [fitting] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `torch_tensor_cpp()`: ! Lantern is not loaded. Please use `install_torch()` to install additional dependencies. --- Backtrace: ▆ 1. ├─StMoMo::fit(...) 2. └─NNMoMo:::fit.NNMoMo(...) 3. └─torch (local) initialize_torch_dataset(data, object$loss_type) 4. └─d$new(df = df, loss_type = loss_type) 5. └─NNMoMo (local) initialize(...) 6. └─torch::torch_tensor(as.matrix(df[, rate_cols])) 7. └─Tensor$new(data, dtype, device, requires_grad, pin_memory) 8. └─methods$initialize(NULL, NULL, ...) 9. └─torch:::torch_tensor_cpp(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'NNMoMoVignette.Rmd' failed with diagnostics: Lantern is not loaded. Please use `install_torch()` to install additional dependencies. --- failed re-building ‘NNMoMoVignette.Rmd’ SUMMARY: processing the following file failed: ‘NNMoMoVignette.Rmd’ Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [0s/0s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs, 1 NOTE