PolyGeniusLogAttribute
Create a PolyGeniusLogAttribute log record
Description
PolyGeniusLogAttribute() constructs a lightweight, list-based S3 object representing one operation log entry associated with a PolyGenius object. It inherits from PolyGeniusAttribute() and fixes the attribute type to “log”.
Usage
PolyGeniusLogAttribute(
name = NULL,
params = NULL,
misc = NULL,
timestamp = NULL,
duration = NULL,
...
)
## S3 method for class 'PolyGeniusLogAttribute'
print(x, ...)
Arguments
name
|
Character scalar. Short operation name or command label. |
params
|
List or atomic vector. Captured parameters for the operation. |
misc
|
List or atomic vector. Free-form metadata. |
timestamp
|
POSIXct, Date, or character. Time the operation started. |
duration
|
Numeric seconds or |
…
|
Named fields to append when constructing. Useful for class- or domain-specific metadata (for example |
x
|
An object of class |
Details
The constructor does not validate field types beyond preserving named fields. Unknown fields are kept so the structure can evolve without breaking existing logs.
Value
An object of S3 class “PolyGeniusLogAttribute”.
Invisibly returns x.
See Also
slotLog(), capturePolyGeniusLog(), PolyGeniusAttribute()
Examples
PolyGeniusLogAttribute(
name = "fit_model",
params = list(method = "glm"),
timestamp = Sys.time(),
duration = 0.42
)