CRAN Package Check Results for Package torchopt

Last updated on 2025-07-04 23:49:54 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.4 4.72 373.85 378.57 ERROR
r-devel-linux-x86_64-debian-gcc 0.1.4 3.58 455.07 458.65 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.4 153.31 OK
r-devel-linux-x86_64-fedora-gcc 0.1.4 151.37 OK
r-devel-windows-x86_64 0.1.4 9.00 85.00 94.00 OK
r-patched-linux-x86_64 0.1.4 4.82 360.30 365.12 ERROR
r-release-linux-x86_64 0.1.4 5.10 366.06 371.16 ERROR
r-release-macos-arm64 0.1.4 51.00 OK
r-release-macos-x86_64 0.1.4 83.00 OK
r-release-windows-x86_64 0.1.4 7.00 84.00 91.00 OK
r-oldrel-macos-arm64 0.1.4 23.00 OK
r-oldrel-macos-x86_64 0.1.4 34.00 OK
r-oldrel-windows-x86_64 0.1.4 11.00 106.00 117.00 OK

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: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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]))) + } Error: .onLoad failed in loadNamespace() for 'torch', details: call: inst_path() error: torch cannot write into '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/torch/'. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.1.4
Check: examples
Result: ERROR Running examples in ‘torchopt-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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]))) + } Error: .onLoad failed in loadNamespace() for 'torch', details: call: inst_path() error: torch cannot write into '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/torch/'. Execution halted Flavor: 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: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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]))) + } Error: .onLoad failed in loadNamespace() for 'torch', details: call: inst_path() error: torch cannot write into '/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/torch/'. Execution halted Flavor: r-patched-linux-x86_64

Version: 0.1.4
Check: examples
Result: ERROR Running examples in ‘torchopt-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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]))) + } Error: .onLoad failed in loadNamespace() for 'torch', details: call: inst_path() error: torch cannot write into '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/torch/'. Execution halted Flavor: r-release-linux-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.