Skip to contents

The AuditTrail class is a list of AuditTrailEntry class objects.

Usage

AuditTrail(entries = list())

# S3 method for class 'AuditTrail'
validate_object(x)

# S3 method for class 'AuditTrail'
add(x, value)

# S3 method for class 'AuditTrail'
as.data.table(x, ...)

# S3 method for class 'AuditTrail'
show(x, ...)

# S3 method for class 'AuditTrail'
save(x, file = "entries.json")

# S3 method for class 'AuditTrail'
read(x, file)

Arguments

x

An AuditTrail object.

value

An object to be added to the AuditTrail as an entry.

file

A character string representing the file path from which the AuditTrail should be read. The possible formats are JSON or RDS.

Methods (by generic)

  • validate_object(AuditTrail): Validate the AuditTrail object, returning NULL if valid.

  • add(AuditTrail): Add an entry to the AuditTrail list, returning the updated AuditTrail.

  • as.data.table(AuditTrail): Convert the AuditTrail object to a data frame.

  • show(AuditTrail): Show the AuditTrail entries in a human-readable format.

  • save(AuditTrail): Save the AuditTrail object to a file.

  • read(AuditTrail): Read an AuditTrail object from a file.