Produces a standalone HTML file that visualises the audit trail as an interactive pipeline flow diagram. The file is completely self-contained — no server, internet connection, or R installation is required to view it. Open it in any browser.
Arguments
- .trail
An
audit_trail()object.- file
Path to the output
.htmlfile. IfNULL(the default), writes to a temporary file and opens it in the default browser viautils::browseURL().
Details
The trail is serialised via trail_to_list() and embedded as JSON inside
an HTML template with inline CSS and vanilla JavaScript. The visualisation
features:
Horizontal pipeline flow diagram with colour-coded nodes per operation type (snapshot, join, filter).
Edges annotated with key deltas (match rate, drop \ added).
Clickable nodes expanding to show column schema, operation diagnostics, and custom
.fnsresults.Clickable edges showing the full diff between adjacent snapshots.
Light / dark theme toggle.
Collapsible JSON export panel.
See also
trail_to_list(), write_trail()
Other audit export:
read_trail(),
trail_to_df(),
trail_to_list(),
write_trail()
Examples
# \donttest{
trail <- audit_trail("demo")
mtcars |> audit_tap(trail, "raw")
dplyr::filter(mtcars, mpg > 20) |> audit_tap(trail, "filtered")
audit_export(trail, tempfile(fileext = ".html"))
# }