DRDataRaft/ docs
GitHub ↗

V01 Suggest a contract from data

V01Adapters and additional tools1 step

Use your current course session. Preparation and course runner · R script ↓

Optional deep dive. Enable only the options named in each block, after preparing its packages or services.

V01 Suggest a contract from data

Goal: Review inferred types deliberately.

Prerequisites: H01; extras=TRUE.

Inference observes types; it cannot reliably infer business rules or ownership.

training_step(
  "V01",
  {
    contract_draft <- dr_contract_from(
      policies,
      "policies.draft",
      owner = "Training",
      grain = "One policy",
      key = "policy_id"
    )
    print(contract_draft)
    confirmed_contract <- dr_contract_confirm(contract_draft)
    print(confirmed_contract)
  },
  needs = c("H01"),
  enabled = training_options$extras,
  optional = TRUE
)

Expected result: A confirmed contract after explicit review.

Task: Does confirm execute a delivery?

Show solution

No. It confirms the specification draft. dr_run checks data.

Search documentation

Search functions, packages and guides.