- 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 'madgrad/DESCRIPTION' ... OK
- this is package 'madgrad' version '0.1.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 'madgrad' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package 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 ... [0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s] OK
- checking whether the package can be unloaded cleanly ... [0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s] OK
- checking loading without being on the library search path ... [0s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... NOTE
Warning: 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
- checking S3 generic/method consistency ... WARNING
Warning: 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
See section 'Generic functions and methods' in the 'Writing R
Extensions' manual.
- checking replacement functions ... OK
- checking foreign function calls ... NOTE
Warning: 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
See chapter 'System and foreign language interfaces' in the 'Writing R
Extensions' manual.
- checking R code for possible problems ... [12s] NOTE
Warning: 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
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... WARNING
Warning: 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
- checking Rd \usage sections ... NOTE
Warning: 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
The \usage entries for S3 methods should use the \method markup and not
their full name.
See chapter 'Writing R documentation files' in the 'Writing R
Extensions' manual.
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking examples ... [6s] ERROR
Running examples in 'madgrad-Ex.R' failed
The error most likely occurred in:
> ### Name: optim_madgrad
> ### Title: A Momentumized, Adaptive, Dual Averaged Gradient Method for
> ### Stochastic Optimization.
> ### Aliases: optim_madgrad
>
> ### ** Examples
>
> if (torch::torch_is_installed()) {
+ library(torch)
+ x <- torch_randn(1, requires_grad = TRUE)
+ opt <- optim_madgrad(x)
+ for (i in 1:100) {
+ opt$zero_grad()
+ y <- x^2
+ y$backward()
+ opt$step()
+ }
+ all.equal(x$item(), 0, tolerance = 1e-9)
+ }
Warning: 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
Error in (function (size, options) :
Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
Calls: torch_randn ... call_c_function -> do_call -> do.call -> <Anonymous>
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [1s] OK
Running 'testthat.R' [1s]
- checking PDF version of manual ... [16s] OK
- checking HTML version of manual ... [0s] OK
- DONE
Status: 1 ERROR, 2 WARNINGs, 4 NOTEs