Skip to content

rTensor

1.5.0Package record

Tools for Tensor Analysis and Decomposition

22packages dependsuggested by 1
19.8Kdownloads / year
41.8%test coverage
13/13flavors OK

Overview

About

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
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.5.0
README· In the repository, left out of the releaseVignettesNoNEWSYes · 100% structuredCitation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Cites a JSS article
Help pages
50includes a package overview page
Examples that run
100%42 run in a plain check
Exported functions with examples
85%
Documented parameters
100%
Return-value docs
82%
Help pages citing references
50%

Downloads

19.8K
CRAN downloads in the past year
Rank #3,459 · ~54/day · ~1.7K/mo
Daily download trend is not available in this view yet.
1.1K30 days
3.1K90 days
19.8K1 year
Compare downloads with other packages →
Also on348 r2u4 autocran2K conda_forge83 c2d4u

Repository

7Stars
3Forks
0Open PRs
1Releases
33Commits
5Commit identities
33 commits · Last activity 2026-05-07 · 0% stars, 30d
Responsiveness
not measured

Stars over time

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

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

Checks run against github.com/rikenbit/rtensor on 2026-10-18.

Continuous integration (2)
GitHub ActionsTravis CI (config file)
Reproducibility and dev environment (1)
Dockerfile
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-05-07
    Commits: at least 3 crediting it in the message
Models named in its commits
  • Claude Opus 4.63 commits · May 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)

Installing rTensor adds no packages beyond those that come with R.

Depends (1)
R >= 2.10.0
Imports (1)
methods
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
22direct
2indirect
Imports 22
Suggested by 1
Show all 23 packagesHide all 23 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (4)
Maintainer, Contributor · added in 1.4.9
Author

Maintainer since 1.4.8 (2021), previously James Li (1.0 to 1.4.1)

Listed in earlier versions (2)
D. Andrews
no longer listed · 3.0.3 to 1.0
A. Barua
no longer listed · 3.0.3 to 1.0
Releases (10)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 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
  • 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
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 3.0.3Latest
    record
    2014-01-27 · current release · diff ↗ ·
    added 19 exports
    as.tensor, cp, cs_fold, fold, hamadard_list, hosvd, khatri_rao, khatri_rao_list, kronecker_list, mpca, pvd, rand_tensor, rs_fold, t_mult, t_svd, t_svd_reconstruct, ttl, ttm, tucker
Show 10 earlier eventsHide 10 earlier events
  • 1.5.0
    record
    2026-05-09 · diff ↗ ·
    added 5 exports
    indscal, rescal, dedicom, parafac2, twodlda
  • 1.4.9
    record
    2025-08-25 · diff ↗
  • 1.4.8
    record
    2021-05-15 · diff ↗ ·
    added 1 export
    load_orl
  • 1.4.1
    record
    2020-03-22 · diff ↗
  • 1.4
    record
    2018-12-04 · diff ↗
  • 1.3
    record
    2015-12-15 · diff ↗ ·
    removed 1 export
    hamadard_list
    added 2 exports
    hadamard_list, plot_orl
  • 1.2
    record
    2014-11-11 · diff ↗ ·
    added 13 exports
    cs_unfold, fnorm, innerProd, k_fold, k_unfold, matvec, modeMean, modeSum, rs_unfold, tperm, unfold, unmatvec, vec
  • 1.1
    record
    2014-04-08 · diff ↗
  • 1.0
    record
    2014-01-28
  • R
    R 3.0.0 released · 2013-04-03

Package metadata

First published
2014-01-27
Total releases
10 / 12 yrs
License
MIT + file LICENSE OSI · relicensed from GPL (>= 2) in 1.4.9
Minimum R
≥ 2.10.0
Download size
43 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("rTensor")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.18637/jss.v087.i10.

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-10-20. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-20, 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