powered by
Assign a value to a variable in the current context
assign(var_name, value)
No return value, called for side effects
The name of the variable to assign
The value to assign to the variable
if (FALSE) { ctx <- JSContext$new() ctx$assign("a", 1) ctx$get("a") }
Run the code above in your browser using DataLab