Skip to content

ricci

Ricci Calculus

v0.1.1 · Sep 4, 2025 · GPL (>= 3)

Description

Provides a compact 'R' interface for performing tensor calculations. This is achieved by allowing (upper and lower) index labeling of arrays and making use of Ricci calculus conventions to implicitly trigger contractions and diagonal subsetting. Explicit tensor operations, such as addition, subtraction and multiplication of tensors via the standard operators, raising and lowering indices, taking symmetric or antisymmetric tensor parts, as well as the Kronecker product are available. Common tensors like the Kronecker delta, Levi Civita epsilon, certain metric tensors, the Christoffel symbols, the Riemann as well as Ricci tensors are provided. The covariant derivative of tensor fields with respect to any metric tensor can be evaluated. An effort was made to provide the user with useful error messages.

Downloads

CRAN

459

Last 30 days

9091st

1.5K

Last 90 days

4.8K

Last year

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

r2u CRAN

0

Last 30 days

18

Last 90 days

54

Last year

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

autoCRAN

4

Last 7 days

7

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [8s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional te
...[truncated]...
4.     └─testthat:::verify_exec(quo_get_expr(x), quo_get_env(x), replay)
   5.       └─withr::local_pdf(device_path)
   6.         └─grDevices::pdf(new, ...)
  
  [ FAIL 1 | WARN 0 | SKIP 18 | PASS 142 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

5,281

Files

70

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,682 (50.8%)Tests 1,241 (23.5%)Docs 1,081 (20.5%)Vignettes 277 (5.2%)

API

Exported functions

27

Internal functions

58

Recent export changes

v0.1.1+27 %_%, ., as_a +24 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.46

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

96.3%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

1

First release

2025-09-04

Latest release

2025-09-04

Avg cadence

Cold removal rate

Dep drift

0

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies calculus cli rlang ricci

Version History

1 tracked
new 0.1.1 Mar 10, 2026

R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN Sep 4, 2025. Releases before tracking aren’t shown.