CRAN Package Check Results for Package madgrad

Last updated on 2025-06-27 12:48:35 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.0 6.65 45.52 52.17 ERROR
r-devel-linux-x86_64-debian-gcc 0.1.0 3.54 36.18 39.72 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.0 78.49 NOTE
r-devel-linux-x86_64-fedora-gcc 0.1.0 75.59 NOTE
r-devel-windows-x86_64 0.1.0 6.00 55.00 61.00 OK
r-patched-linux-x86_64 ERROR
r-release-linux-x86_64 0.1.0 6.24 39.43 45.67 OK
r-release-macos-arm64 0.1.0 37.00 OK
r-release-macos-x86_64 0.1.0 52.00 OK
r-release-windows-x86_64 0.1.0 6.00 56.00 62.00 OK
r-oldrel-macos-arm64 0.1.0 22.00 OK
r-oldrel-macos-x86_64 0.1.0 37.00 OK
r-oldrel-windows-x86_64 0.1.0 7.00 66.00 73.00 OK

Check Details

Version: 0.1.0
Check: CRAN incoming feasibility
Result: NOTE Maintainer: ‘Daniel Falbel <daniel@rstudio.com>’ The Description field contains (2020) <arxiv:2101.11075>. 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.0
Check: examples
Result: ERROR Running examples in ‘madgrad-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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) + } 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.0
Check: examples
Result: ERROR Running examples in ‘madgrad-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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) + } 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.0
Check: dependencies in R code
Result: NOTE Namespaces in Imports field not imported from: ‘rlang’ ‘torch’ All declared Imports should be used. Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.1.0
Check: examples
Result: ERROR Running examples in ‘madgrad-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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) + } 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