CRAN Package Check Results for Package torch

Last updated on 2025-03-23 08:52:48 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.14.2 753.01 339.56 1092.57 NOTE
r-devel-linux-x86_64-debian-gcc 0.14.2 615.19 235.72 850.91 NOTE
r-devel-linux-x86_64-fedora-clang 0.14.2 1629.52 NOTE
r-devel-linux-x86_64-fedora-gcc 0.14.2 2406.70 NOTE
r-devel-macos-arm64 0.14.2 330.00 OK
r-devel-macos-x86_64 0.14.2 700.00 OK
r-devel-windows-x86_64 0.14.2 929.00 629.00 1558.00 OK
r-patched-linux-x86_64 0.14.2 873.86 329.55 1203.41 NOTE
r-release-linux-x86_64 0.14.2 871.79 319.45 1191.24 OK
r-release-macos-arm64 0.14.2 418.00 NOTE
r-release-macos-x86_64 0.14.2 815.00 NOTE
r-release-windows-x86_64 0.14.2 796.00 0.00 796.00 FAIL
r-oldrel-macos-arm64 0.14.2 419.00 NOTE
r-oldrel-macos-x86_64 0.14.2 803.00 NOTE
r-oldrel-windows-x86_64 0.14.2 1042.00 787.00 1829.00 NOTE

Additional issues

rchk

Check Details

Version: 0.14.2
Check: compiled code
Result: NOTE File ‘torch/libs/torch.so’: Found non-API call to R: ‘DATAPTR’ File ‘torch/libs/torchpkg.so’: Found non-API call to R: ‘DATAPTR’ Compiled code should not call non-API entry points in R. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual, and section ‘Moving into C API compliance’ for issues with the use of non-API entry points. 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-patched-linux-x86_64

Version: 0.14.2
Check: installed package size
Result: NOTE installed size is 222.8Mb sub-directories of 1Mb or more: R 6.2Mb help 1.7Mb include 1.9Mb libs 212.3Mb Flavors: r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64

Version: 0.14.2
Check: examples
Result: FAIL Check process probably crashed or hung up for 20 minutes ... killed Most likely this happened in the example checks (?), if not, ignore the following last lines of example output: > > ### Name: nn_nll_loss > ### Title: Nll loss > ### Aliases: nn_nll_loss > > ### ** Examples > > if (torch_is_installed()) { + m <- nn_log_softmax(dim = 2) + loss <- nn_nll_loss() + # input is of size N x C = 3 x 5 + input <- torch_randn(3, 5, requires_grad = TRUE) + # each element in target has to have 0 <= value < C + target <- torch_tensor(c(2, 1, 5), dtype = torch_long()) + output <- loss(m(input), target) + output$backward() + + # 2D loss example (used, for example, with image inputs) + N <- 5 + C <- 4 + loss <- nn_nll_loss() + # input is of size N x C x height x width + data <- torch_randn(N, 16, 10, 10) + conv <- nn_conv2d(16, C, c(3, 3)) + m <- nn_log_softmax(dim = 1) + # each element in target has to have 0 <= value < C + target <- torch_empty(N, 8, 8, dtype = torch_long())$random_(1, C) + output <- loss(m(conv(data)), target) + output$backward() + } ======== End of example output (where/before crash/hang up occured ?) ======== Flavor: r-release-windows-x86_64