Skip to content

torch

Tensors and Neural Networks with 'GPU' Acceleration

v0.16.3 · Nov 1, 2025 · MIT + file LICENSE

Description

Provides functionality to define and train neural networks similar to 'PyTorch' by Paszke et al (2019) <doi:10.48550/arXiv.1912.01703> but written entirely in R using the 'libtorch' library. Also supports low-level tensor operations and 'GPU' acceleration.

Downloads

12.7K

Last 30 days

1113th

37.9K

Last 90 days

165.5K

Last year

Trend: -1.4% (30d vs prior 30d)

CRAN Check Status

7 WARNING
3 NOTE
4 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang WARNING
r-devel-linux-x86_64-debian-gcc WARNING
r-devel-linux-x86_64-fedora-clang WARNING
r-devel-linux-x86_64-fedora-gcc WARNING
r-devel-macos-arm64 WARNING
r-devel-windows-x86_64 WARNING
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 WARNING
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (10 non-OK)
WARNING r-devel-linux-x86_64-debian-clang

compiled code

File ‘torch/libs/torchpkg.so’:
  Found non-API calls to R: ‘R_UnboundValue’, ‘Rf_findVarInFrame’
This entry point may be removed soon:
‘Rf_findVarInFrame’

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.
WARNING r-devel-linux-x86_64-debian-gcc

compiled code

File ‘torch/libs/torchpkg.so’:
  Found non-API calls to R: ‘R_UnboundValue’, ‘Rf_findVarInFrame’
This entry point may be removed soon:
‘Rf_findVarInFrame’

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.
WARNING r-devel-linux-x86_64-fedora-clang

compiled code

File ‘torch/libs/torchpkg.so’:
  Found non-API calls to R: ‘R_UnboundValue’, ‘Rf_findVarInFrame’
This entry point may be removed soon:
‘Rf_findVarInFrame’

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.
WARNING r-devel-linux-x86_64-fedora-gcc

compiled code

File ‘torch/libs/torchpkg.so’:
  Found non-API calls to R: ‘R_UnboundValue’, ‘Rf_findVarInFrame’
This entry point may be removed soon:
‘Rf_findVarInFrame’

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.
WARNING r-devel-macos-arm64

compiled code

File ‘torch/libs/torchpkg.so’:
  Found non-API call to R: ‘Rf_findVarInFrame’
This entry point may be removed soon.

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.
WARNING r-devel-windows-x86_64

compiled code

File 'torch/libs/x64/torchpkg.dll':
  Found non-API calls to R: 'R_UnboundValue', 'Rf_findVarInFrame'
This entry point may be removed soon:
'Rf_findVarInFrame'

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.
NOTE r-oldrel-macos-arm64

installed package size

installed size is 117.0Mb
  sub-directories of 1Mb or more:
    R          6.2Mb
    help       1.7Mb
    include    1.9Mb
    libs     106.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 107.3Mb
  sub-directories of 1Mb or more:
    R         6.1Mb
    help      2.3Mb
    include   1.9Mb
    libs     96.7Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is 19.2Mb
  sub-directories of 1Mb or more:
    R         5.9Mb
    help      1.8Mb
    include   1.9Mb
    libs      9.3Mb
WARNING r-patched-linux-x86_64

compiled code

File ‘torch/libs/torchpkg.so’:
  Found non-API calls to R: ‘R_MissingArg’, ‘R_UnboundValue’,
    ‘Rf_findVarInFrame’
This entry point may be removed soon:
‘Rf_findVarInFrame’

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.

Additional Issues

Check History

WARNING 6 OK · 7 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Mar 20, 2026
NOTE r-devel-linux-x86_64-debian-clang

compiled code

File ‘torch/libs/torchpkg.so’:
  Found non-API call to R: ‘Rf_findVarInFrame’

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.
WARNING r-devel-linux-x86_64-debian-gcc

compiled code

File ‘torch/libs/torchpkg.so’:
  Found non-API call to R: ‘Rf_findVarInFrame’
This entry point may be removed soon.

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.
NOTE r-devel-linux-x86_64-fedora-clang

compiled code

File ‘torch/libs/torchpkg.so’:
  Found non-API call to R: ‘Rf_findVarInFrame’

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.
NOTE r-devel-linux-x86_64-fedora-gcc

compiled code

File ‘torch/libs/torchpkg.so’:
  Found non-API call to R: ‘Rf_findVarInFrame’

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.
NOTE r-devel-windows-x86_64

compiled code

File 'torch/libs/x64/torchpkg.dll':
  Found non-API call to R: 'Rf_findVarInFrame'

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.
NOTE r-oldrel-macos-arm64

installed package size

installed size is 117.0Mb
  sub-directories of 1Mb or more:
    R          6.2Mb
    help       1.7Mb
    include    1.9Mb
    libs     106.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 107.3Mb
  sub-directories of 1Mb or more:
    R         6.1Mb
    help      2.3Mb
    include   1.9Mb
    libs     96.7Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is 19.2Mb
  sub-directories of 1Mb or more:
    R         5.9Mb
    help      1.8Mb
    include   1.9Mb
    libs      9.3Mb
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 117.0Mb
  sub-directories of 1Mb or more:
    R          6.2Mb
    help       1.7Mb
    include    1.9Mb
    libs     106.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 107.3Mb
  sub-directories of 1Mb or more:
    R         6.1Mb
    help      2.3Mb
    include   1.9Mb
    libs     96.7Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is 19.2Mb
  sub-directories of 1Mb or more:
    R         5.9Mb
    help      1.8Mb
    include   1.9Mb
    libs      9.3Mb

Reverse Dependencies (58)

depends

Dependency Network

Dependencies Reverse dependencies Rcpp R6 withr rlang bit64 magrittr coro callr cli glue desc safetensors jsonlite scales mlr3torch BKTR EQRN LBBNN NNMoMo PLNmodels RGAN SEMdeep brulee causalOT circlus cito crumble engression genderBR +43 more reverse deps torch

Version History

new 0.16.3 Mar 10, 2026
updated 0.16.3 ← 0.16.2 diff Nov 1, 2025
updated 0.16.2 ← 0.16.1 diff Oct 30, 2025
updated 0.16.1 ← 0.16.0 diff Oct 15, 2025
updated 0.16.0 ← 0.15.1 diff Aug 20, 2025
updated 0.15.1 ← 0.15.0 diff Jul 9, 2025
updated 0.15.0 ← 0.14.2 diff Jun 22, 2025
updated 0.14.2 ← 0.14.1 diff Feb 13, 2025
updated 0.14.1 ← 0.14.0 diff Feb 2, 2025
updated 0.14.0 ← 0.13.0 diff Jan 29, 2025
updated 0.13.0 ← 0.12.0 diff May 21, 2024
updated 0.12.0 ← 0.11.0 diff Dec 14, 2023
updated 0.11.0 ← 0.10.0 diff Jun 5, 2023
updated 0.10.0 ← 0.9.1 diff Apr 13, 2023
updated 0.9.1 ← 0.9.0 diff Jan 22, 2023
updated 0.9.0 ← 0.8.1 diff Oct 23, 2022
updated 0.8.1 ← 0.8.0 diff Aug 18, 2022
updated 0.8.0 ← 0.7.2 diff Jun 9, 2022
updated 0.7.2 ← 0.7.1 diff Feb 25, 2022
updated 0.7.1 ← 0.7.0 diff Feb 24, 2022