Package: selecta 0.6.1

selecta: Declarative EQUATOR-Style Flow Diagrams for Clinical Studies

Build EQUATOR-style flowcharts for clinical studies by sequentially defining inclusion and exclusion criteria, study arms, and endpoints. The pipe-friendly API supports CONSORT (randomized trials), STROBE (observational cohorts), STARD (diagnostic accuracy), PRISMA (systematic reviews), and MOOSE (observational meta-analysis) diagram layouts, as well as multi-source convergence, split-and-recombine, factorial, and hybrid topologies. Diagrams are rendered via 'grid' graphics in both data-driven (automatic counting) and manual-count modes, with optional 'DiagrammeR'/'Graphviz' output.

Authors:Paul Hsin-ti McClelland [aut, cre, cph]

selecta_0.6.1.tar.gz
selecta_0.6.1.zip(r-4.7-any)selecta_0.6.1.zip(r-4.6-any)selecta_0.6.1.zip(r-4.5-any)
selecta_0.6.1.tgz(r-4.6-any)selecta_0.6.1.tgz(r-4.5-any)
selecta_0.6.1.tar.gz(r-4.7-any)selecta_0.6.1.tar.gz(r-4.6-any)
selecta_0.6.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
selecta/json (API)

# Install 'selecta' in R:
install.packages('selecta', repos = c('https://phmcc.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/phmcc/selecta/issues

Pkgdown/docs site:https://phmcc.codefloe.page

Datasets:

On CRAN:

Conda:

5.78 score 1 stars 24 scripts 406 downloads 14 exports 1 dependencies

Last updated from:af10eb7ea3. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK129
source / vignettesOK181
linux-releaseOK124
macos-releaseOK125
macos-oldrelOK202
windows-develOK112
windows-releaseOK86
windows-oldrelOK99
wasm-releaseOK109

Exports:allocateassesscohortcohortscombineendpointenrollexcludeflowchartflowsavephaserecdimssourcesstratify

Dependencies:data.table

Advanced Workflows
Preliminaries | Factorial (Multi-Split) Designs | Example 1: A Two-by-Two Factorial Trial | Example 2: Larger Factorial Grids | Example 3: Asymmetric Factorial Designs | Example 4: Factorial Designs from Row-Level Data | Example 5: Pooling Twice into a Single Cohort | Example 6: Factorial Layouts via the DOT Engine | Hierarchical (Nested) Exclusion Reasons | Example 7: Manual Nested Reasons | Example 8: Two-Column Reasons from Row-Level Data | Example 9: Nested Reasons via the DOT Engine | Visual Customization | Example 10: Custom Font Sizes | Example 11: Custom Colors | Example 12: Font Family | Example 13: Regional Number Formatting | Global Options | Multi-Line Phase Labels | Example 14: Wrapped Phase Labels | Example 15: Explicit Line Breaks | Further Reading

Last update: 2026-06-19
Started: 2026-06-18

Enrollment Diagrams
Preliminaries | Operating Modes | CONSORT — Randomized Controlled Trials | Example 1: Data-Driven Two-Arm Trial | Example 2: Data-Driven Three-Arm Trial | Example 3: Manual Mode | Example 4: Count-First Display Mode | STROBE — Observational Cohort Studies | Example 5: Single-Arm Cohort | Example 6: Exposure-Stratified Cohort | STARD — Diagnostic Accuracy Studies | Example 7: Index Test and Reference Standard | Cohort Extraction | Inspecting the Diagram Structure | Saving to File | Further Reading

Last update: 2026-06-19
Started: 2026-06-18

Graphviz Export
Preliminaries | Generating DOT Output | Example 1: Basic DOT String | Example 2: Multi-Arm Trial (CONSORT) | Example 3: Systematic Review (PRISMA) | Customizing DOT Output | Example 4: Changing Node Colors | Example 5: Count-First Layout | Example 6: Rich (HTML) Formatting | Example 7: Times Typography | Example 8: Adding Graphviz Attributes | Font Formatting Notes | The plot() Method | Bullets vs. Indentation | Saving to File | Advanced Rendering Options | Saving as HTML | Saving as PNG | Choosing Between Engines | Further Reading

Last update: 2026-06-19
Started: 2026-06-18

Split-and-Recombine Diagrams
Preliminaries | Manual Entry | Example 1: Screening Validation Study | Example 2: Per-Stratum Exclusion Reasons | Data-Driven Flow | Example 3: Data-Driven Split and Recombine | Cohort Extraction | Re-Splitting after Recombination | Example 4: Risk Stratification Followed by Randomization | Design Considerations | Saving to File | Further Reading

Last update: 2026-06-19
Started: 2026-06-18

Systematic Reviews
Preliminaries | PRISMA — Three-Column Layout | Example 1: Full Three-Column PRISMA Diagram | Example 2: Three-Column Count-First Layout | PRISMA — Two-Column Layout | Example 3: Two-Column Sources | PRISMA — Single-Column Layout | Example 4: Flat Source List | MOOSE — Observational Meta-Analysis | Example 5: MOOSE Flow Diagram | Source Group Structure | Saving to File | Further Reading

Last update: 2026-06-19
Started: 2026-06-18