JSContext-method-assign {QuickJSR} | R Documentation |
Assign a value to a variable in the current context
Description
Assign a value to a variable in the current context
Usage
assign(var_name, value)
Arguments
var_name |
The name of the variable to assign |
value |
The value to assign to the variable |
Format
An object of class NULL
of length 0.
Value
No return value, called for side effects
Examples
## Not run:
ctx <- JSContext$new()
ctx$assign("a", 1)
ctx$get("a")
## End(Not run)
[Package QuickJSR version 1.3.1 Index]