Coerces the entries list of a regulog object into a flat data.frame,
one row per entry (genesis record excluded). Columns match those produced
by export_audit_trail() with format = "csv".
Usage
# S3 method for class 'regulog'
as.data.frame(x, ...)Value
A data.frame with columns entry_id, timestamp, app,
app_version, user, type, action, object, field, before,
after, reason, text, meaning, entry_hash, prev_hash.
Details
Called implicitly by filter_log() and useful for direct inspection.
Examples
log <- regulog_init(app = "analysis", version = "1.0", user = "jsmith")
log_action(log,
action = "run",
object = "primary.R",
reason = "Primary model fitted"
)
#> regulog: logged action 'run' on 'primary.R'
log_note(log, "Outlier in subject 042 retained per SAP")
#> regulog: note logged
as.data.frame(log)
#> entry_id timestamp app app_version user type
#> 1 1 2026-07-20T11:22:45.323267Z analysis 1.0 jsmith ACTION
#> 2 2 2026-07-20T11:22:45.324284Z analysis 1.0 jsmith NOTE
#> action object field before after reason
#> 1 run primary.R <NA> <NA> <NA> Primary model fitted
#> 2 note <NA> <NA> <NA> <NA> Outlier in subject 042 retained per SAP
#> text meaning entry_hash
#> 1 <NA> <NA> 27f58d2a6a3e5903d0e326b7bef1aff6b0d3e7164b583f8773f8ff37718e0bcc
#> 2 <NA> <NA> 002a6d16f6c300e3c6ca8cbab4003e3acbc50950005b4d353f38c4ef4ac28c5d
#> prev_hash
#> 1 807c15235047817984bcde2494344727e71df9847f31104990003f8aa2410b1d
#> 2 27f58d2a6a3e5903d0e326b7bef1aff6b0d3e7164b583f8773f8ff37718e0bcc
