Learn R Programming

DCC (version 1.2.1)

dcc_run_files: Output files written by a run

Description

Returns the output paths written by dcc_run.

Usage

dcc_run_files(x)

Value

A character vector of the file paths the run wrote.

Arguments

x

A dcc_run from dcc_run.

Examples

Run this code
rf <- tempfile(fileext = ".yaml")
writeLines(c("checks:", "  - id: R001", "    type: range",
             "    variable: score", "    min: 0", "    max: 100"), rf)
csv <- tempfile(fileext = ".csv")
writeLines(c("sid,score", "S1,90", "S2,150"), csv)
if (requireNamespace("yaml", quietly = TRUE)) {
  cfg <- dcc_config(dcc_rules(rf), id_var = "sid")
  dcc_run_files(dcc_run(csv, cfg, tempfile("dcc-out")))
}

Run the code above in your browser using DataLab