Skip to content

rollupTree

Perform Recursive Computations

v0.4.1 · Feb 10, 2026 · MIT + file LICENSE

Description

Mass rollup for a Bill of Materials is an example of a class of computations in which elements are arranged in a tree structure and some property of each element is a computed function of the corresponding values of its child elements. Leaf elements, i.e., those with no children, have values assigned. In many cases, the combining function is simple arithmetic sum; in other cases (e.g., mass properties), the combiner may involve other information such as the geometric relationship between parent and child, or statistical relations such as root-sum-of-squares (RSS). This package implements a general function for such problems. It is adapted to specific recursive computations by functional programming techniques; the caller passes a function as the update parameter to rollup() (or, at a lower level, passes functions as the get, set, combine, and override parameters to update_prop()) at runtime to specify the desired operations. The implementation relies on graph-theoretic algorithms from the 'igraph' package of Csárdi, et al. (2006 <doi:10.5281/zenodo.7682609>).

Downloads

734

Last 30 days

4947th

2K

Last 90 days

6.9K

Last year

Trend: +5.9% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 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-macos-arm64 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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (1)

imports

Dependency Network

Dependencies Reverse dependencies igraph massProps rollupTree

Version History

new 0.4.1 Mar 10, 2026
updated 0.4.1 ← 0.4.0 diff Feb 9, 2026
updated 0.4.0 ← 0.3.2 diff Jan 29, 2026
updated 0.3.2 ← 0.3.1 diff Jun 17, 2025
updated 0.3.1 ← 0.3.0 diff Apr 18, 2025
updated 0.3.0 ← 0.2.0 diff Mar 5, 2025
updated 0.2.0 ← 0.1.0 diff Feb 3, 2025
new 0.1.0 Jan 19, 2025