Skip to content

struct

Bioc current

Statistics in R Using Class-based Templates

v1.24.0 · software · GPL-3

Release Lineage

Entered 3.11 · Apr 28, 2020

Current · Requires R 4.6

1.0 In 13 of 49 releases 3.23

Description

Defines and includes a set of class-based templates for developing and implementing data processing and analysis workflows, with a strong emphasis on statistics and machine learning. The templates can be used and where needed extended to 'wrap' tools and methods from other packages into a common standardised structure to allow for effective and fast integration. Model objects can be combined into sequences, and sequences nested in iterators using overloaded operators to simplify and improve readability of the code. Ontology lookup has been integrated and implemented to provide standardised definitions for methods, inputs and outputs wrapped using the class-based templates.

Test coverage

Line coverage

Expression

Tests / Examples

Functions

43 24 exported

Complexity

2.7 avg / 24 max

Call network

43 nodes / 24 edges

Test coverage is not measured for Bioconductor packages; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

8,418

Files

109

Compiled share

0%

Has compiled src

No

Language breakdown

R 4,343 (51.6%)Tests 799 (9.5%)Docs 2,560 (30.4%)Vignettes 716 (8.5%)

API

Exported functions

67

Internal functions

19

Recent export changes

v3.23+1 ontology_online  −7 entity_stato, enum_stato, stato 4 more
v3.19+2 .struct_class, get_description

Testing & CI

Has tests

Yes

Test-to-code ratio

0.18

testthat edition

CI present

Yes

CI type

["github-actions"]

PR gated

Yes

Docs

Roxygen coverage

100%

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

8

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.0

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

13

First release

2020-04-27

Latest release

2026-04-28

Avg cadence

182 days

Cold removal rate

100%

Dep drift

5

LOC over versions

v3.11: 6,761 LOCv3.12: 7,346 LOCv3.13: 7,346 LOCv3.14: 8,323 LOCv3.15: 8,392 LOCv3.16: 8,392 LOCv3.17: 8,392 LOCv3.18: 8,392 LOCv3.19: 8,564 LOCv3.20: 8,564 LOCv3.21: 8,564 LOCv3.22: 8,564 LOCv3.23: 8,418 LOC

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

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
93%
Documented parameters
98%
Return-value docs
100%
References docs
0%

Topics

Depended on by (3)

People

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("struct")
Lloyd, G. R., & Weber, R. J. M. (2026). struct: Statistics in R Using Class-based Templates (Version 1.24.0) [Computer software]. https://bioconductor.org/packages/struct

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 struct version 1.24.0 [Data set]. HJJB, LLC. Data release v2026-08-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-23, 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