Skip to content

Returns the projected columns, join keys, source tables, and output shape for each output defined in the recipe, without executing anything on the server. Useful for verifying the recipe structure before running it.

Usage

recipe_preview_schema(recipe)

Arguments

recipe

An omop_recipe object.

Value

A named list of data.frames (one per output), each with columns output, column, source, concept, type, and format. Attributes "join_key", "tables", "output_type", and "population_id" are attached to each data.frame.

Examples

if (FALSE) { # \dontrun{
schemas <- recipe_preview_schema(recipe)
print(schemas[["output_1"]])
} # }