JSContext-method-assign | R Documentation |
Assign a value to a variable in the current context
assign(var_name, value)
var_name |
The name of the variable to assign |
value |
The value to assign to the variable |
An object of class NULL
of length 0.
No return value, called for side effects
## Not run:
ctx <- JSContext$new()
ctx$assign("a", 1)
ctx$get("a")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.