* using log directory 'd:/Rcompile/CRANpkg/local/4.4/luz.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'luz/DESCRIPTION' ... OK * this is package 'luz' version '0.5.0' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'luz' can be installed ... WARNING Found the following significant warnings: Warning: Torch libraries are installed but loading them caused a segfault. See 'd:/Rcompile/CRANpkg/local/4.4/luz.Rcheck/00install.out' for details. * checking installed package size ... OK * 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 ... [6s] OK * checking whether the package can be loaded with stated dependencies ... [5s] OK * checking whether the package can be unloaded cleanly ... [5s] OK * checking whether the namespace can be loaded with stated dependencies ... [5s] OK * checking whether the namespace can be unloaded cleanly ... [6s] OK * checking loading without being on the library search path ... [6s] 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 ... [16s] OK * checking Rd files ... [2s] OK * checking Rd metadata ... 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [6s] ERROR Running examples in 'luz-Ex.R' failed The error most likely occurred in: > ### Name: lr_finder > ### Title: Learning Rate Finder > ### Aliases: lr_finder > > ### ** Examples > > if (torch::torch_is_installed()) { + library(torch) + ds <- torch::tensor_dataset(x = torch_randn(100, 10), y = torch_randn(100, 1)) + dl <- torch::dataloader(ds, batch_size = 32) + model <- torch::nn_linear + model <- model %>% setup( + loss = torch::nn_mse_loss(), + optimizer = torch::optim_adam + ) %>% + set_hparams(in_features = 10, out_features = 1) + records <- lr_finder(model, dl, verbose = FALSE) + plot(records) + } Error in (function (size, options) : Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Calls: ... call_c_function -> do_call -> do.call -> Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [6s] OK Running 'testthat.R' [6s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [18s] ERROR Error(s) in re-building vignettes: --- re-building 'accelerator.Rmd' using rmarkdown --- finished re-building 'accelerator.Rmd' --- re-building 'custom-loop.Rmd' using rmarkdown --- finished re-building 'custom-loop.Rmd' --- re-building 'get-started.Rmd' using rmarkdown Quitting from ./../man/rmd/evaluate.Rmd:1-43 [unnamed-chunk-23] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `cpp_torch_manual_seed()`: ! Lantern is not loaded. Please use `install_torch()` to install additional dependencies. --- Backtrace: ▆ 1. └─torch::torch_manual_seed(1) 2. └─torch:::cpp_torch_manual_seed(as.character(seed)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Quitting from get-started.Rmd:158-159 [unnamed-chunk-8] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `cpp_torch_manual_seed()`: ! Lantern is not loaded. Please use `install_torch()` to install additional dependencies. --- Backtrace: ▆ 1. └─torch::torch_manual_seed(1) 2. └─torch:::cpp_torch_manual_seed(as.character(seed)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'get-started.Rmd' failed with diagnostics: Lantern is not loaded. Please use `install_torch()` to install additional dependencies. --- failed re-building 'get-started.Rmd' SUMMARY: processing the following file failed: 'get-started.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [10s] OK * DONE Status: 2 ERRORs, 1 WARNING