Package: trialdiff 0.2.0

Hirujan Rangaraj

trialdiff: Clinical Trial Data-Cut Change Detection and Impact Assessment

A transparent, rule-based framework for detecting changes between successive data cuts of clinical trial datasets, classifying those changes into clinically meaningful categories, tracing user-defined data lineage, and assessing which downstream analyses and outputs may be affected. The package is designed to complement existing low-level data frame comparison tools by adding clinical-trial-specific classification, lineage and impact-assessment layers on top of deterministic comparison. The rule-based classification is similar in spirit to the data validation infrastructure of van der Loo and de Jonge (2021) <doi:10.18637/jss.v097.i10>.

Authors:Hirujan Rangaraj [aut, cre]

trialdiff_0.2.0.tar.gz
trialdiff_0.2.0.zip(r-4.7-any)trialdiff_0.2.0.zip(r-4.6-any)
trialdiff_0.2.0.tar.gz(r-4.7-any)trialdiff_0.2.0.tar.gz(r-4.6-any)
trialdiff_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
trialdiff/json (API)

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

Bug tracker:https://github.com/hirujan-r/trialdiff/issues

Pkgdown/docs site:https://hirujan-r.github.io

Datasets:

On CRAN:

Conda:

3.40 score 22 exports 20 dependencies

Last updated from:10f18ecf31. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK209
source / vignettesOK262
linux-releaseOK229
windows-develOK97
windows-releaseOK107
wasm-releaseOK168

Exports:add_edgesadd_outputsas_igraphas_jsonas_registerassess_impactclassify_changescompare_cutdefine_lineageimpact_policylineage_edgelineage_from_metadatalineage_provenancelineage_reviewoutput_registryremove_edgesreport_difftd_categoriestd_default_rulestd_outputtd_ruletrace_dependencies

Dependencies:base64encclidigestdplyrfastmapgenericsgluehtmltoolsjsonlitelifecyclemagrittrpillarpkgconfigR6rlangtibbletidyselectutf8vctrswithr

Case study: data-cut review on public ADaM data
The two data cuts | Lineage from metadata plus a registry | Compare and classify | Assess downstream impact | Review report | What this demonstrates | Limitations

Last update: 2026-09-27
Started: 2026-09-27

Getting started with trialdiff
Why trialdiff? | The example data | 1. Compare two data cuts | 2. Classify the changes | 3. Define lineage | 4. Assess impact | 5. Report | Next steps

Last update: 2026-09-27
Started: 2026-09-27

Lineage and impact assessment
The lineage model | Tracing | Impact assessment | Why "definitely" versus "potentially"? | Lineage gaps | Generating lineage from metadata

Last update: 2026-09-27
Started: 2026-09-27

The change-classification system
Design principles | The built-in categories | The change register | Applying the default rules | Writing a custom rule | Prioritisation

Last update: 2026-09-27
Started: 2026-09-27

trialdiff and the existing ecosystem
Complement, not duplicate | Integration points | Is this novel?

Last update: 2026-09-27
Started: 2026-09-27