Skip to content

trialdiff

0.2.0Package record

Clinical Trial Data-Cut Change Detection and Impact Assessment

0packages depend
385downloads / year
93.6%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.2.0
  • Added an analysis/output registry: td_output() and output_registry() declare analyses and outputs and their inputs, and add_outputs(), add_edges() and remove_edges() graft, extend or override a lineage graph.
  • Added lineage_from_metadata(), which derives a lineage graph from a \pkg{metacore} object (or equivalent metadata tables), with provenance and a review list for ambiguous or unparsed references. aliases resolve tokens that would otherwise be ambiguous or unknown, and overrides merge an analysis/output registry into the generated graph.
  • Added a "diffdf" comparison backend to compare_cut(), which delegates value comparison to the \pkg{diffdf} package and translates its output into a tdiff object (schema comparison remains built in).
  • Added a case-study vignette using public pharmaverseadam data.
Show all changes in 0.2.0Hide the rest of the changes in 0.2.0
  • as_register() now coerces key columns to character, fixing a failure when key columns were not character.
  • New records in visit-based datasets are classified as new_visit rather than new_assessment.
  • Added edge-case tests; package coverage now exceeds 90%.
  • Bumped GitHub Actions and added Codecov configuration.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.4 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OKNow
  • OK6 OK2026-09-28
Advisories

none known

Documentation

In release 0.2.0
READMEYes · 456 wordsVignettesYes · 5 · dynamicNEWSYes · 100% structured · mentions 0.2.0Citation fileNoWebsiteYes · pkgdown
Description cites a JSS article
Help pages
29 (4 internal)includes a package overview page
Examples that run
100%7 run in a plain check
Exported functions with examples
32%
Documented parameters
88%
Return-value docs
100%
Help pages citing references
0%

Downloads

385
CRAN downloads in the past year
Rank #25,205 · ~1/day · ~32/mo
Daily download trend is not available in this view yet.
38530 days
38590 days
3851 year
Compare downloads with other packages →
Also on5 r2u3 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
2Releases
30Commits
1Commit identities
30 commits · Last activity 2026-09-30 · Default branch at 0.2.1, ahead of CRAN 0.2.0 (checked 2026-10-18)
Responsiveness
not measured
PracticesBeta

12 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/hirujan-r/trialdiff on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (2)
Code of conductContributing guide
Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-09-30 · The repository has a site deploy workflow

pkgdown site last built 2026-09-30

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Lint, format, editor (2)
lintrLint workflow
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
25 external dependencies (excludes base and recommended)

Installing trialdiff adds 20 packages (14 with compiled code, 6.6 MB of source tarballs). Heaviest: jsonlite 1.0 MB, vctrs 1.0 MB, dplyr 902 KB.

Depends (1)
R >= 4.1
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.2.0 (2026)
Releases (1)
  • 0.2.0Latest
    2026-09-27 · current release
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-09-27
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1
Bundled data
6.8 KB / 5 files
Download size
126 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("trialdiff")
Rangaraj, H. (2026). trialdiff: Clinical Trial Data-Cut Change Detection and Impact Assessment (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.trialdiff

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 trialdiff version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, 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