Assign a value to a variable in the current context

assign(var_name, value)

Format

An object of class NULL of length 0.

Arguments

var_name

The name of the variable to assign

value

The value to assign to the variable

Value

No return value, called for side effects

Examples

if (FALSE) { # \dontrun{
ctx <- JSContext$new()
ctx$assign("a", 1)
ctx$get("a")
} # }