
Build a Normalized 3-Table DICOM Archive Index (DuckDB / Parquet / Tibble)
Source:R/archive-index.R
dicom_index_build.RdScans a DICOM directory (or header tibble) and constructs normalized
studies, series, and instances tables backed by duckdb (with optional
Parquet export) or a pure-R tibble fallback.
Usage
dicom_index_build(
path,
db_path = ":memory:",
parquet_dir = NULL,
engine = c("auto", "duckdb", "tibble")
)Arguments
- path
Directory containing
.dcmfiles, or a data frame fromread_dicom().- db_path
Path to a DuckDB database file or
":memory:".- parquet_dir
Optional directory where
studies.parquet,series.parquet, andinstances.parquetare written whenduckdbis used.- engine
Backend engine:
"auto"(usesduckdbif installed, otherwise"tibble"),"duckdb", or"tibble".