Writes a ukbflow_audit object to a JSON manifest. The manifest is a
plain-list representation of the audit object: session information is
converted to character lines, and record layers such as extraction
and snapshots are written as JSON arrays.
Arguments
- audit
A
ukbflow_auditobject created byaudit_start.- file
(character) Output JSON file path. Default:
"ukbflow-audit.json".- overwrite
(logical) Overwrite
fileif it already exists. Default:FALSE.
Examples
aud <- audit_start("example_analysis")
outfile <- tempfile(fileext = ".json")
audit_write(aud, outfile)
#> ✔ audit manifest written: /tmp/Rtmp0MkjCT/file21e621b7d006.json
