Export report audit provenance as JSON
Examples
spec <- cr_report_spec(
report = list(report_id = "EXAMPLE-001"),
result = list(value = 1.42, unit = "a.u.", classification = "INTERMEDIATE"),
authorization = list(authorized_by = "Example Authorizer")
)
qc <- cr_report_qc("Cells per well", observed = "1520",
acceptance = ">= 500", status = "PASS")
report <- cr_lab_report(spec = spec, qc = qc)
audit <- tempfile(fileext = ".json")
cr_export_report_audit(report, audit)
unlink(audit)