Skip to contents

Retrieves the update history of a variable, showing previous values and their transaction IDs.

Usage

mc_get_variable_history(
  conn,
  variable,
  verbose = FALSE,
  count = 10,
  start = NULL
)

Arguments

conn

A connection object created by mc_connect.

variable

Character string. Variable name or transaction ID.

verbose

Logical. If TRUE, returns detailed entries.

count

Integer. Number of historical entries to return (default 10).

start

Optional integer. Offset (positive for forward, negative for backward). If omitted, the most recent entries are returned.

Value

A data frame (via rpc_res_to_df) with history entries.

Examples

if (FALSE) { # \dontrun{
history <- mc_get_variable_history(conn, "myvar", count = 5)
} # }