CRAN Package Check Results for Maintainer ‘Gilberto Camara <gilberto.camara.inpe at gmail.com>’

Last updated on 2025-07-01 05:49:46 CEST.

Package ERROR NOTE OK
bayesEO 13
sits 6 7
torchopt 4 9

Package bayesEO

Current CRAN status: NOTE: 13

Version: 0.2.1
Check: DESCRIPTION meta-information
Result: NOTE Missing dependency on R >= 4.1.0 because package code uses the pipe |> or function shorthand \(...) syntax added in R 4.1.0. File(s) using such syntax: ‘bayes_colors.R’ ‘bayes_label.R’ Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64

Version: 0.2.1
Check: installed package size
Result: NOTE installed size is 6.4Mb sub-directories of 1Mb or more: extdata 4.1Mb libs 2.2Mb Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64

Package sits

Current CRAN status: NOTE: 6, OK: 7

Version: 1.5.2
Check: R code for possible problems
Result: NOTE .torch_batch_conv1D_batch_norm_relu: no visible global function definition for ‘create_nn_module_callable’ .torch_conv1D_batch_norm: no visible global function definition for ‘create_nn_module_callable’ .torch_conv1D_batch_norm_relu: no visible global function definition for ‘create_nn_module_callable’ .torch_conv1D_batch_norm_relu_dropout: no visible global function definition for ‘create_nn_module_callable’ .torch_light_temporal_attention_encoder: no visible global function definition for ‘create_nn_module_callable’ .torch_linear_batch_norm_relu: no visible global function definition for ‘create_nn_module_callable’ .torch_linear_batch_norm_relu_dropout: no visible global function definition for ‘create_nn_module_callable’ .torch_linear_relu_dropout: no visible global function definition for ‘create_nn_module_callable’ .torch_multi_head_attention: no visible global function definition for ‘create_nn_module_callable’ .torch_multi_linear_batch_norm_relu: no visible global function definition for ‘create_nn_module_callable’ .torch_pixel_spatial_encoder: no visible global function definition for ‘create_nn_module_callable’ .torch_positional_encoding: no visible global function definition for ‘create_nn_module_callable’ .torch_scaled_dot_product_attention: no visible global function definition for ‘create_nn_module_callable’ .torch_temporal_attention_encoder: no visible global function definition for ‘create_nn_module_callable’ Undefined global functions or variables: create_nn_module_callable Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 1.5.2
Check: installed package size
Result: NOTE installed size is 11.8Mb sub-directories of 1Mb or more: R 2.1Mb extdata 1.3Mb libs 7.8Mb Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64

Package torchopt

Current CRAN status: ERROR: 4, OK: 9

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