* using log directory 'd:/RCompile/CRANincoming/R-devel/NNMoMo.Rcheck' * using R Under development (unstable) (2025-10-16 r88927 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 'NNMoMo/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'NNMoMo' version '0.1.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'NNMoMo' can be installed ... OK * checking installed package size ... 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 ... 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 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 ... [20s] 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 LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... 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 ... OK Running 'testthat.R' * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... 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 ... [19s] OK * checking HTML version of manual ... OK * DONE Status: 2 ERRORs, 1 NOTE