This function combines multiple domain specifications into a single specification list,
ensuring deduplication of columns, resolving conflicts in the required
field,
and checking for type mismatches.
Examples
spec1 <- list(
df1 = list(
col1 = list(required = TRUE),
col2 = list(required = TRUE)
),
df2 = list(
col3 = list(required = TRUE),
col4 = list(required = TRUE)
)
)
spec2 <- list(
df1 = list(
col1 = list(required = TRUE),
col5 = list(required = TRUE)
),
df3 = list(
col6 = list(required = TRUE),
col7 = list(required = TRUE)
)
)
combined <- CombineSpecs(list(spec1, spec2), bIsWorkflow = FALSE)
mappings <- MakeWorkflowList(strPath = "workflow/1_mappings")
mapping_spec <- CombineSpecs(mappings)