Skip to contents

Updates the value of an existing variable. The new value can be any JSON‑compatible object (list, number, string, etc.).

Usage

mc_set_variable_value(conn, variable, value = NULL)

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.

Value

A list containing the result of the RPC call (usually transaction ID).

Examples

if (FALSE) { # \dontrun{
mc_set_variable_value(conn, "myvar", value = list(updated = TRUE))
} # }