audit: Retrieve or Assign the Audit and Artifact Attributes

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/audited.R

Description

Use audit(x) to retrieve the transaction table for an audited object.

If possible, operations whose names appear in the vector options('artifact') store the changed records in the artifact list, which can be retrieved using artifact(x). Length of the artifact list is always equal to number of records in the audit table, and elements correspond to audit records. However, artifacts will have zero rows by default. For example if you specify options(artifact='drop') or options(artifact=TRUE) then any dropped records are archived; add operations etc. generate header only. Other possible character elements are add, create, transform, merge, and modify. For merge, the artifact, if any, is simply y.

Normally one should not need to use the assignment forms.

Usage

1
2
3
4
5
6
## S3 method for class 'audited'
audit(x, ...)
## S3 method for class 'audited'
artifact(x, ...)
audit(x) <- value
artifact(x) <- value

Arguments

x

an audited object

...

ignored

value

an audit object

Value

for assignment: the audited object; for retrieval: the audit or artifact attribute

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

See Also

Examples

1

audited documentation built on May 2, 2019, 4:45 p.m.