Updates the value of an existing variable. The new value can be any JSON‑compatible object (list, number, string, etc.).
Arguments
- conn
A connection object created by
mc_connect.- variable
Character string. Variable name or transaction ID.
- value
Optional. New value (any JSON structure). If
NULL, the variable is deleted.
Examples
if (FALSE) { # \dontrun{
mc_set_variable_value(conn, "myvar", value = list(updated = TRUE))
} # }