CRAN Package Check Results for Package torchopt

Last updated on 2025-10-30 15:50:27 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.4 5.77 115.04 120.81 NOTE
r-devel-linux-x86_64-debian-gcc 0.1.4 10.35 79.81 90.16 NOTE
r-devel-linux-x86_64-fedora-clang 0.1.4 31.00 177.16 208.16 OK
r-devel-linux-x86_64-fedora-gcc 0.1.4 27.00 169.13 196.13 OK
r-devel-windows-x86_64 0.1.4 8.00 60.00 68.00 ERROR
r-patched-linux-x86_64 0.1.4 5.23 108.45 113.68 OK
r-release-linux-x86_64 0.1.4 5.19 110.12 115.31 OK
r-release-macos-arm64 0.1.4 4.00 47.00 51.00 OK
r-release-macos-x86_64 0.1.4 7.00 76.00 83.00 OK
r-release-windows-x86_64 0.1.4 7.00 74.00 81.00 ERROR
r-oldrel-macos-arm64 0.1.4 3.00 20.00 23.00 OK
r-oldrel-macos-x86_64 0.1.4 4.00 30.00 34.00 OK
r-oldrel-windows-x86_64 0.1.4 8.00 84.00 92.00 ERROR

Check Details

Version: 0.1.4
Check: CRAN incoming feasibility
Result: NOTE Maintainer: ‘Gilberto Camara <gilberto.camara.inpe@gmail.com>’ The Description field contains (a) 'adabelief' by Zhuang et al (2020), <arXiv:2010.07468>; (b) 'adabound' by Luo et al.(2019), <arXiv:1902.09843>; (c) 'adahessian' by Yao et al.(2021) <arXiv:2006.00719>; (d) 'adamw' by Loshchilov & Hutter (2019), <arXiv:1711.05101>; (e) 'madgrad' by Defazio and Jelassi (2021), <arXiv:2101.11075>; (f) 'nadam' by Dozat (2019), Ma and Yarats(2019), <arXiv:1810.06801>; (h) 'radam' by Liu et al. (2019), <arXiv:1908.03265>; (i) 'swats' by Shekar and Sochee (2018), <arXiv:1712.07628>; (j) 'yogi' by Zaheer et al.(2019), Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>. Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 0.1.4
Check: examples
Result: ERROR Running examples in 'torchopt-Ex.R' failed The error most likely occurred in: > ### Name: optim_adabelief > ### Title: Adabelief optimizer > ### Aliases: optim_adabelief > > ### ** Examples > > if (torch::torch_is_installed()) { + # function to demonstrate optimization + beale <- function(x, y) { + log((1.5 - x + x * y)^2 + (2.25 - x - x * y^2)^2 + (2.625 - x + x * y^3)^2) + } + # define optimizer + optim <- torchopt::optim_adabelief + # define hyperparams + opt_hparams <- list(lr = 0.01) + + # starting point + x0 <- 3 + y0 <- 3 + # create tensor + x <- torch::torch_tensor(x0, requires_grad = TRUE) + y <- torch::torch_tensor(y0, requires_grad = TRUE) + # instantiate optimizer + optim <- do.call(optim, c(list(params = list(x, y)), opt_hparams)) + # run optimizer + steps <- 400 + x_steps <- numeric(steps) + y_steps <- numeric(steps) + for (i in seq_len(steps)) { + x_steps[i] <- as.numeric(x) + y_steps[i] <- as.numeric(y) + optim$zero_grad() + z <- beale(x, y) + z$backward() + optim$step() + } + print(paste0("starting value = ", beale(x0, y0))) + print(paste0("final value = ", beale(x_steps[steps], y_steps[steps]))) + } Flavor: r-devel-windows-x86_64

Version: 0.1.4
Check: dependencies in R code
Result: 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 Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 0.1.4
Check: S3 generic/method consistency
Result: WARN 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. Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 0.1.4
Check: foreign function calls
Result: 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. Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 0.1.4
Check: R code for possible problems
Result: 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 Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 0.1.4
Check: for code/documentation mismatches
Result: WARN 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 Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 0.1.4
Check: Rd \usage sections
Result: 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. Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 0.1.4
Check: examples
Result: ERROR Running examples in 'torchopt-Ex.R' failed The error most likely occurred in: > ### Name: optim_adabelief > ### Title: Adabelief optimizer > ### Aliases: optim_adabelief > > ### ** Examples > > if (torch::torch_is_installed()) { + # function to demonstrate optimization + beale <- function(x, y) { + log((1.5 - x + x * y)^2 + (2.25 - x - x * y^2)^2 + (2.625 - x + x * y^3)^2) + } + # define optimizer + optim <- torchopt::optim_adabelief + # define hyperparams + opt_hparams <- list(lr = 0.01) + + # starting point + x0 <- 3 + y0 <- 3 + # create tensor + x <- torch::torch_tensor(x0, requires_grad = TRUE) + y <- torch::torch_tensor(y0, requires_grad = TRUE) + # instantiate optimizer + optim <- do.call(optim, c(list(params = list(x, y)), opt_hparams)) + # run optimizer + steps <- 400 + x_steps <- numeric(steps) + y_steps <- numeric(steps) + for (i in seq_len(steps)) { + x_steps[i] <- as.numeric(x) + y_steps[i] <- as.numeric(y) + optim$zero_grad() + z <- beale(x, y) + z$backward() + optim$step() + } + print(paste0("starting value = ", beale(x0, y0))) + print(paste0("final value = ", beale(x_steps[steps], y_steps[steps]))) + } 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 torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory) : Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Calls: <Anonymous> -> <Anonymous> -> <Anonymous> -> torch_tensor_cpp Execution halted Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.