dr_contract_yaml()
Export the portable contract subset
Usage
dr_contract_yaml(contract, path)Arguments
- contract
- Contract definition.
- path
- YAML output file.
Value
Output path, invisibly. Executable R rules are described, never
serialized as runnable YAML.
Examples
\dontshow{if (requireNamespace("yaml", quietly = TRUE)) withAutoprint(\{ # examplesIf}
contract <- dataraft.core::dr_contract(
"orders", version = "1.0.0", columns =
c(order_id = "integer", amount = "numeric"), key = "order_id"
)
path <- tempfile(fileext = ".yml")
dr_contract_yaml(contract, path)
cat(readLines(path), sep = "\n")
unlink(path)
\dontshow{\}) # examplesIf}Documentation source snapshot · View source at 2f9432d ↗
Code examples are documented source examples; they are not executed in this website build.
Code examples are documented source examples; they are not executed in this website build.