Record {laminr} | R Documentation |
A record from a registry.
new()
Creates an instance of this R6 class. This class should not be instantiated directly,
but rather by connecting to a LaminDB instance using the connect()
function.
Record$new(instance, registry, api, data)
instance
The instance the record belongs to.
registry
The registry the record belongs to.
api
The API for the instance.
data
The data for the record.
delete()
Delete a Record
Record$delete(verbose = FALSE)
verbose
Whether to print details of the API call
TRUE
invisibly if the deletion is successful
print()
Print a Record
Record$print(style = TRUE)
style
Logical, whether the output is styled using ANSI codes
to_string()
Create a string representation of a Record
Record$to_string(style = FALSE)
style
Logical, whether the output is styled using ANSI codes
A cli::cli_ansi_string
if style = TRUE
or a character vector