Skip to content

rTensor

1.5.0

Tools for Tensor Analysis and Decomposition

23packages depend
24.7Kdownloads / year
41.8%test coverage
13/13checks pass

Overview

About
Maintained by Koki TsuyuzakiFirst published 2014-01-2810 releasesCRAN page ↗GitHub ↗

A set of tools for creation, manipulation, and modeling of tensors with arbitrary number of modes. A tensor in the context of data analysis is a multidimensional array. rTensor does this by providing a S4 class 'Tensor' that wraps around the base 'array' class. rTensor provides common tensor operations as methods, including matrix unfolding, summing/averaging across modes, calculating the Frobenius norm, and taking the inner product between two tensors. Familiar array operations are overloaded, such as index subsetting via '[' and element-wise operations. rTensor also implements various tensor decomposition, including CP, GLRAM, MPCA, PVD, Tucker, INDSCAL, RESCAL, DEDICOM, PARAFAC2, and 2DLDA. For tensors with 3 modes, rTensor also implements transpose, t-product, and t-SVD, as defined in Kilmer et al. (2013). Some auxiliary functions include the Khatri-Rao product, Kronecker product, and the Hadamard product for a list of matrices.

Install

Health

CRAN checks
13OK
Slowest check: 1.6 min · r-release-macos-x86_64
Code health
Yes
Tests · ratio 0.19
41.8%
Coverage · measured lines
100%
Documentation · exports
1
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
82%
References docs
50%

Downloads

24.7K
CRAN downloads in the past year
Rank #2,619 · ~68/day · ~2.1K/mo
Daily download trend is not available in this view yet.
81230 days
6.9K90 days
24.7K1 year
Compare downloads with other packages →
Also on238 r2u15 autocran2.2K conda_forge51 c2d4u

Repository

Repository
7Stars
3Forks
0Open issues
0Open PRs
1Releases
33Commits
5Contributors
33 commits · Last activity 2026-05-07 · 0% stars, 30d

Stars over time

2024-05-27 · 62026-07-07 · 7

Repository practices

Upstream repositoryBeta

3 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/rikenbit/rtensor on 2026-08-16.

Continuous integration (2)
GitHub ActionsTravis CI
Reproducibility and dev environment (1)
Dockerfile
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)
Depends (1)
R >= 2.10.0
Imports (1)
methods
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none

Code & Tests

People & History

People (4)
Maintainer (1)
Maintainer, Contributor · added in 1.4.9
Authors (3)
Author
Contributors (1)
Maintainer, Contributor · added in 1.4.9
Listed in earlier versions (2)
no longer listed · 3.0.3 to 1.0
no longer listed · 3.0.3 to 1.0
Package Timeline

10 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 1.5.0Latest
    2026-05-09 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.4.9
    2025-08-25 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 1.4.8
    2021-05-15 · diff ↗
  • unarchivedReturned to CRAN
    2021-05-15
  • archivedRemoved from CRAN
    2021-05-05
    check problems were not corrected in time
  • R
    R 4.0.0 released · 2020-04-24
  • 1.4.1
    2020-03-22 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 1.4
    2018-12-04 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
Show 10 earlier events
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 1.3
    2015-12-15 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 1.2
    2014-11-11 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 1.1
    2014-04-08 · diff ↗
  • 1.0
    2014-01-28 · diff ↗
  • 3.0.3
    2014-01-27
  • R
    R 3.0.0 released · 2013-04-03

Package metadata

First published
2014-01-28
Total releases
10 / 12 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 2.10.0
Download size
43 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("rTensor")
Tsuyuzaki, K., Bien, J., Li, J., & Wells, M. (2026). rTensor: Tools for Tensor Analysis and Decomposition (Version 1.5.0) [Computer software]. https://doi.org/10.32614/CRAN.package.rTensor

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for rTensor version 1.5.0 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy