Generate YAML for pointblank validation agent from convo

write_pb(
  convo,
  col_names,
  level = 1,
  filename = "convo-validation.yml",
  path = "."
)

Arguments

convo

convo object read from YAML

col_names

Character vector of column names

level

Numeric. Level of controlled vocabulary containing validation checks

filename

Name of YAML file to create

path

Optional path to directory in which YAML file should be created

Value

Does not return. Call function for side-effect of writing file.

Examples

if (FALSE) { filepath <- system.file("", "ex-convo.yml", package = "convo") convo <- read_convo(filepath) write_pb(convo, c("IND_A", "AMT_B"), filename = "convo-validation.yml", path = ".") }