Package: hvtiRdatabuild 0.3.2

hvtiRdatabuild: Build and Verify Analytic Datasets for the HVTI CORR Group

Builds analysis-ready clinical datasets for the clinical investigations statistics group within The Heart and Vascular Institute at the Cleveland Clinic, and verifies them against the legacy 'SAS' datasets they replace.

Authors:John Ehrlinger [aut, cre]

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

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

Bug tracker:https://github.com/ehrlinger/hvtirdatabuild/issues

Pkgdown/docs site:https://ehrlinger.github.io

On CRAN:

Conda:

quarto

4.08 score 1 stars 7 scripts 21 exports 33 dependencies

Last updated from:724235ab06. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK210
source / vignettesOK252
linux-releaseOK204
macos-releaseOK228
macos-oldrelOK202
windows-develOK235
windows-releaseOK201
windows-oldrelOK202
wasm-releaseOK153

Exports:append_cohort_stagebackfill_correctionsbuild_datasetcohort_summarycompare_builtdecide_correctionderive_varsdw_connectdw_modulesdw_pulllift_masternew_cohort_recordpropose_correctionpublish_datasetread_analysis_setread_master_configread_study_configsnapshot_mastersnapshot_oraclewithdraw_dataset_releasewrite_analysis_set

Dependencies:bitbit64clicliprcpp11crayonDBIdigestdplyrfilelockforcatsgenericsgluehavenhmshvtiRutilitieslifecyclemagrittrpillarpkgconfigprettyunitsprogressR6readrrlangtibbletidyselecttzdbutf8vctrsvroomwithryaml

Coming from SAS
Who this is for | The model shift | Idiom translation | Build and derive with study-specific code | Port the downstream dataset, not its first consumer | The traps | Missing sorts low | Character comparison is blank-padded in SAS | SAS has no missing character value | MERGE is not a join | Dates use different origins | Automatic variables do not exist in R | length 4 silently truncates | Verifying your own port

Last update: 2026-10-12
Started: 2026-08-05

Master datasets
What a master is, and why a view | master.yml | Phase 0: snapshot_master() and lineage from the log | Phases 1 and 2: lift_master() and backfill_corrections(), dry run first | The everyday workflow: propose_correction(), decide_correction(), the stale view | What is not done yet

Last update: 2026-09-24
Started: 2026-09-24

Readme and manuals

Help Manual

Help pageTopics
Append an outcome stage to a cohort historyappend_cohort_stage
Backfill a master's corrections from its SAS build, and regenerate its viewbackfill_corrections
Assemble the patient-level datasetbuild_dataset
Summarize cohort attrition without patient identifierscohort_summary
Compare an R-built dataset against a SAS oraclecompare_built
Decide a correction: accept, reject, supersede or bake itdecide_correction
Apply study-specific variable derivationsderive_vars
Open a connection to the data warehousedw_connect
List the available warehouse modulesdw_modules
Pull the enabled warehouse modules for a studydw_pull
Lift a master's parquet snapshot into the warehouse as a viewlift_master
Create an ordered cohort historynew_cohort_record
Print a built dataset result without patient valuesprint.build_result
Print a dataset comparisonprint.built_comparison
Print a derived dataset result without patient valuesprint.derive_result
Print a pull resultprint.pull_result
Propose a correction to a single cell of a masterpropose_correction
Publish an immutable dataset releasepublish_dataset
Read an analysis setread_analysis_set
Read a master dataset's configurationread_master_config
Read and validate a study configurationread_study_config
Snapshot a master dataset to parquet, with its lineagesnapshot_master
Freeze a SAS-built dataset as a checksummed parquet oraclesnapshot_oracle
Safely inspect a built dataset resultstr.build_result
Structure of a dataset comparison, without identifiersstr.built_comparison
Safely inspect a cohort recordstr.cohort_record
Safely inspect a derived dataset resultstr.derive_result
Withdraw a published dataset releasewithdraw_dataset_release
Write an analysis setwrite_analysis_set