CRAN Package Check Results for Package madgrad

Last updated on 2025-06-25 05:49:57 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.0 6.15 42.95 49.10 NOTE
r-devel-linux-x86_64-debian-gcc 0.1.0 3.54 36.64 40.18 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 5.00 54.00 59.00 OK
r-patched-linux-x86_64 0.1.0 6.27 39.92 46.19 OK
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 57.00 63.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 8.00 66.00 74.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-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